blob: f5ddc3368c8f72251a8cd4df6ea1d68309874bcf [file] [log] [blame]
license.botf003cfe2008-08-24 09:55:55 +09001// 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
13namespace file_util {
14
15const wchar_t kPathSeparator = L'/';
16
17bool AbsolutePath(std::wstring* path) {
18 NOTIMPLEMENTED();
19 return false;
20}
21
22bool 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
31bool CopyFile(const std::wstring& from_path, const std::wstring& to_path) {
32 // TODO(erikkay): implement
33 NOTIMPLEMENTED();
34 return false;
35}
36
37bool PathExists(const std::wstring& path) {
38 NOTIMPLEMENTED();
39 return false;
40}
41
42bool GetCurrentDirectory(std::wstring* path) {
43 NOTIMPLEMENTED();
44 return false;
45}
46
47bool CreateDirectory(const std::wstring& full_path) {
48 NOTIMPLEMENTED();
49 return false;
50}
51
52bool SetCurrentDirectory(const std::wstring& current_directory) {
53 NOTIMPLEMENTED();
54 return false;
55}
56
57} // namespace file_util
58