license.bot | f003cfe | 2008-08-24 09:55:55 +0900 | [diff] [blame^] | 1 | // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
|
| 2 | // Use of this source code is governed by a BSD-style license that can be
|
| 3 | // found in the LICENSE file.
|
| 4 |
|
| 5 | #include "base/file_util.h"
|
| 6 |
|
| 7 | #include <string>
|
| 8 |
|
| 9 | #include "base/logging.h"
|
| 10 | #include "base/notimplemented.h"
|
| 11 | #include "base/string_util.h"
|
| 12 |
|
| 13 | namespace file_util {
|
| 14 |
|
| 15 | const wchar_t kPathSeparator = L'/';
|
| 16 |
|
| 17 | bool AbsolutePath(std::wstring* path) {
|
| 18 | NOTIMPLEMENTED();
|
| 19 | return false;
|
| 20 | }
|
| 21 |
|
| 22 | bool GetTempDir(std::wstring* path) {
|
| 23 | const char* tmp = getenv("TMPDIR");
|
| 24 | if (tmp)
|
| 25 | *path = UTF8ToWide(tmp);
|
| 26 | else
|
| 27 | *path = L"/tmp";
|
| 28 | return true;
|
| 29 | }
|
| 30 |
|
| 31 | bool CopyFile(const std::wstring& from_path, const std::wstring& to_path) {
|
| 32 | // TODO(erikkay): implement
|
| 33 | NOTIMPLEMENTED();
|
| 34 | return false;
|
| 35 | }
|
| 36 |
|
| 37 | bool PathExists(const std::wstring& path) {
|
| 38 | NOTIMPLEMENTED();
|
| 39 | return false;
|
| 40 | }
|
| 41 |
|
| 42 | bool GetCurrentDirectory(std::wstring* path) {
|
| 43 | NOTIMPLEMENTED();
|
| 44 | return false;
|
| 45 | }
|
| 46 |
|
| 47 | bool CreateDirectory(const std::wstring& full_path) {
|
| 48 | NOTIMPLEMENTED();
|
| 49 | return false;
|
| 50 | }
|
| 51 |
|
| 52 | bool SetCurrentDirectory(const std::wstring& current_directory) {
|
| 53 | NOTIMPLEMENTED();
|
| 54 | return false;
|
| 55 | }
|
| 56 |
|
| 57 | } // namespace file_util
|
| 58 |
|