Changes between Version 1 and Version 2 of MinimalFileStorageAlternate


Ignore:
Timestamp:
Sep 24, 2012 1:10:06 AM (12 years ago)
Author:
mjs@apple.com
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • MinimalFileStorageAlternate

    v1 v2  
    2828    DOMRequest remove(DOMString name);
    2929
    30     // Atomically renames a file or directory; DOMRequest returns boolean true or false to indicate success
    31     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);
    3232
    3333    // The request will return a FileHandle; error if called on a Directory
    3434    // If File is passed, it must be a descendant of this directory
    35     DOMRequest openForWriting(DOMString name or File file);
     35    DOMRequest openForWriting(DOMString or File file);
    3636
    3737    // The request will return a FileHandle; error if called on a Directory
    3838    // If File is passed, it must be a descendant of this directory
    39     DOMRequest openForAppending(DOMString name or File file);
     39    DOMRequest openForAppending(DOMString or File file);
    4040
    4141    // The DOMMultiRequest returns File or Directory objects
    42     DOMMultiRequest enumerateShallow();
     42    DOMMultiRequest readEntries();
    4343
    4444    // The DOMMultiRequest returns File or Directory objects
    45     DOMMultiRequest enumerateDeep();
     45    DOMMultiRequest readEntriesRecursively();
    4646
    4747}
     
    5454    readonly attribute File file;
    5555
    56     attribute long long offset;
     56    attribute long long position;
    5757
    5858    // Result for all of these is the FileHandle
     
    6565
    6666    void close(); // Currently outstanding operations run to completion, but no more may be issued
     67}
     68}}}
     69
     70{{{
     71partial 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);
    6774}
    6875}}}