Index: chrome/common/extensions/api/file_system_provider.idl |
diff --git a/chrome/common/extensions/api/file_system_provider.idl b/chrome/common/extensions/api/file_system_provider.idl |
index 78c6f8cb55b7be681a0f4eaeb6822638b7a8501f..3ed74e79b95f9784920c485ba661dd6b2986f970 100644 |
--- a/chrome/common/extensions/api/file_system_provider.idl |
+++ b/chrome/common/extensions/api/file_system_provider.idl |
@@ -108,6 +108,15 @@ namespace fileSystemProvider { |
double length; |
}; |
+ // Options for the <code>onCreateDirectoryRequested()</code> event. |
+ dictionary CreateDirectoryRequestedOptions { |
+ DOMString fileSystemId; |
+ long requestId; |
+ DOMString directoryPath; |
+ boolean exclusive; |
+ boolean recursive; |
+ }; |
+ |
// Callback to receive the result of mount() function. |
callback MountCallback = void([nodoc, instanceOf=DOMError] object error); |
@@ -216,6 +225,15 @@ namespace fileSystemProvider { |
ReadFileRequestedOptions options, |
FileDataCallback successCallback, |
ProviderErrorCallback errorCallback); |
+ |
+ // Raised when creating a directory is requested. If <code>exclusive</code> |
+ // is set to true, then the operation should fail if the target directory |
+ // already exists. If <code>recursive</code> is true, then all of the |
+ // missing directories on the directory path should be created. |
+ [maxListeners=1, nodoc] static void onCreateDirectoryRequested( |
+ CreateDirectoryRequestedOptions options, |
+ ProviderSuccessCallback successCallback, |
+ ProviderErrorCallback errorCallback); |
}; |
}; |