Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1)

Unified Diff: tools/dom/templates/html/impl/impl_DirectoryEntry.darttemplate

Issue 12663017: Reapply the expanded names with the correct form of requestFileSystem on the (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: tools/dom/templates/html/impl/impl_DirectoryEntry.darttemplate
diff --git a/tools/dom/templates/html/impl/impl_DirectoryEntry.darttemplate b/tools/dom/templates/html/impl/impl_DirectoryEntry.darttemplate
new file mode 100644
index 0000000000000000000000000000000000000000..493b78303d0f30096e933134316d9d7ec795c238
--- /dev/null
+++ b/tools/dom/templates/html/impl/impl_DirectoryEntry.darttemplate
@@ -0,0 +1,47 @@
+// Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
+// for details. All rights reserved. Use of this source code is governed by a
+// BSD-style license that can be found in the LICENSE file.
+
+part of $LIBRARYNAME;
+
+$(ANNOTATIONS)class $CLASSNAME$EXTENDS$IMPLEMENTS$NATIVESPEC {
+
+ /**
+ * Create a new directory with the specified `path`. If `exclusive` is true,
+ * the returned Future will complete with an error if a directory already
+ * exists with the specified `path`.
+ */
+ Future<Entry> createDirectory(String path, {bool exclusive: false}) {
+ return _getDirectory(path, options:
+ {'create': true, 'exclusive': exclusive});
+ }
+
+ /**
+ * Retrieve an already existing directory entry. The returned future will
+ * result in an error if a directory at `path` does not exist or if the item
+ * at `path` is not a directory.
+ */
+ Future<Entry> getDirectory(String path) {
+ return _getDirectory(path);
+ }
+
+ /**
+ * Create a new file with the specified `path`. If `exclusive` is true,
+ * the returned Future will complete with an error if a file already
+ * exists at the specified `path`.
+ */
+ Future<Entry> createFile(String path, {bool exclusive: false}) {
+ return _getFile(path, options: {'create': true, 'exclusive': exclusive});
+ }
+
+ /**
+ * Retrieve an already existing file entry. The returned future will
+ * result in an error if a file at `path` does not exist or if the item at
+ * `path` is not a file.
+ */
+ Future<Entry> getFile(String path) {
+ return _getFile(path);
+ }
+$!MEMBERS
+}
+

Powered by Google App Engine
This is Rietveld 408576698