Changes between Version 1 and Version 2 of MinimalFileStorageAlternate
- Timestamp:
- Sep 24, 2012, 1:10:06 AM (12 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
MinimalFileStorageAlternate
v1 v2 28 28 DOMRequest remove(DOMString name); 29 29 30 // Atomically renames a file or directory; DOMRequest returns boolean true or false to indicate success31 DOMRequest rename(DOMString oldName, DOMString newName);30 // Atomically moves or renames a file or directory; DOMRequest returns boolean true or false to indicate success 31 DOMRequest moveTo(DOMString or File or Directory entry, DOMString newName, optional Directory newParentDirectory); 32 32 33 33 // The request will return a FileHandle; error if called on a Directory 34 34 // If File is passed, it must be a descendant of this directory 35 DOMRequest openForWriting(DOMString nameor File file);35 DOMRequest openForWriting(DOMString or File file); 36 36 37 37 // The request will return a FileHandle; error if called on a Directory 38 38 // If File is passed, it must be a descendant of this directory 39 DOMRequest openForAppending(DOMString nameor File file);39 DOMRequest openForAppending(DOMString or File file); 40 40 41 41 // The DOMMultiRequest returns File or Directory objects 42 DOMMultiRequest enumerateShallow();42 DOMMultiRequest readEntries(); 43 43 44 44 // The DOMMultiRequest returns File or Directory objects 45 DOMMultiRequest enumerateDeep();45 DOMMultiRequest readEntriesRecursively(); 46 46 47 47 } … … 54 54 readonly attribute File file; 55 55 56 attribute long long offset;56 attribute long long position; 57 57 58 58 // Result for all of these is the FileHandle … … 65 65 66 66 void close(); // Currently outstanding operations run to completion, but no more may be issued 67 } 68 }}} 69 70 {{{ 71 partial interface URL { 72 /// Gets a persistent URL for a File, if it's part of a local filesystem; otherwise returns null 73 DOMString? getPersistentURL(File file); 67 74 } 68 75 }}}