From 048e979919ed03ce77e1f530723e15add3883ba1 Mon Sep 17 00:00:00 2001 From: "dmichael@chromium.org" Date: Thu, 23 May 2013 14:28:06 +0000 Subject: PPAPI: Fix doc for MakeDirectory when directory exists BUG=242740 Review URL: https://chromiumcodereview.appspot.com/15755003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@201793 0039d316-1c4b-4281-b951-d872f2087c98 --- ppapi/cpp/file_ref.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'ppapi/cpp') diff --git a/ppapi/cpp/file_ref.h b/ppapi/cpp/file_ref.h index 8b008ac..d229c5f 100644 --- a/ppapi/cpp/file_ref.h +++ b/ppapi/cpp/file_ref.h @@ -96,7 +96,9 @@ class FileRef : public Resource { /// completion of MakeDirectory(). /// /// @return An int32_t containing an error code from pp_errors.h. - /// Fails if the directory already exists. + /// Succeeds if the directory already exists. Fails if ancestor + /// directortories do not exist (see MakeDirectoryIncludingAncestors for the + /// alternative). int32_t MakeDirectory(const CompletionCallback& cc); /// MakeDirectoryIncludingAncestors() makes a new directory in the file @@ -107,7 +109,7 @@ class FileRef : public Resource { /// completion of MakeDirectoryIncludingAncestors(). /// /// @return An int32_t containing an error code from pp_errors.h. - /// Fails if the directory already exists. + /// Succeeds if the directory already exists. int32_t MakeDirectoryIncludingAncestors(const CompletionCallback& cc); /// Touch() Updates time stamps for a file. You must have write access to the -- cgit v1.1