summaryrefslogtreecommitdiffstats
path: root/base/file_util.h
diff options
context:
space:
mode:
authorerikkay@google.com <erikkay@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-12-23 20:20:10 +0000
committererikkay@google.com <erikkay@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-12-23 20:20:10 +0000
commit7e1fde6a79fbc323f22a132dba6777dcd3464218 (patch)
treef644dd3ef1d3107bffda58c4da2fa2c331aa5e2e /base/file_util.h
parentfe5956cb0e0529312c57603b41d4894c82c27b23 (diff)
downloadchromium_src-7e1fde6a79fbc323f22a132dba6777dcd3464218.zip
chromium_src-7e1fde6a79fbc323f22a132dba6777dcd3464218.tar.gz
chromium_src-7e1fde6a79fbc323f22a132dba6777dcd3464218.tar.bz2
file_util minor cleanup:
* add POSIX version of IsPathWritable * convert IsPathWritable to FilePath * convert CreateNewTempDirectory to FilePath * fix a bug where recursive delete errors weren't being handled in POSIX Review URL: http://codereview.chromium.org/16241 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@7430 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/file_util.h')
-rw-r--r--base/file_util.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/base/file_util.h b/base/file_util.h
index d1cfb05..67cd59f 100644
--- a/base/file_util.h
+++ b/base/file_util.h
@@ -186,6 +186,8 @@ bool PathExists(const FilePath& path);
bool PathExists(const std::wstring& path);
// Returns true if the given path is writable by the user, false otherwise.
+bool PathIsWritable(const FilePath& path);
+// Deprecated temporary compatibility function.
bool PathIsWritable(const std::wstring& path);
// Returns true if the given path exists and is a directory, false otherwise.
@@ -273,7 +275,12 @@ bool CreateTemporaryFileNameInDir(const std::wstring& dir,
// Create a new directory under TempPath. If prefix is provided, the new
// directory name is in the format of prefixyyyy.
+// NOTE: prefix is ignored in the POSIX implementation.
+// TODO(erikkay): is this OK?
// If success, return true and output the full path of the directory created.
+bool CreateNewTempDirectory(const FilePath::StringType& prefix,
+ FilePath* new_temp_path);
+// Deprecated temporary compatibility function.
bool CreateNewTempDirectory(const std::wstring& prefix,
std::wstring* new_temp_path);