JSFileApi: Difference between revisions

Jump to navigation Jump to search
383 bytes removed ,  4 October 2011
m
no edit summary
No edit summary
mNo edit summary
Line 23: Line 23:
  //Unix:    [FileUtilities.tmpdir] followed by [mkdtemp] and [FileUtilities.openDirectory]
  //Unix:    [FileUtilities.tmpdir] followed by [mkdtemp] and [FileUtilities.openDirectory]
  //Windows: [FileUtilities.tmpdir] followed by [GetTempFileName] and [FileUtilities.openDirectory]
  //Windows: [FileUtilities.tmpdir] followed by [GetTempFileName] and [FileUtilities.openDirectory]
    },
    /**
      * Open a copy of a file.
      *
      * If neither [directory] nor [name] is provided, the destination file is first created as with [createTemp]
      *
      * @param {DirectoryDescriptor=} destination Optionally, the directory in which to place the file.
      * @param {string=} name Optionally, the name of the file in the directory.
      * @return {FileDescriptor} The copy.
      */
    openFileCopy: function(directory, name) {
//Unix:    need to implement -- note that some file systems support an [ioctl] for copy-on-write.
//Windows:  maps to [CopyFile] http://msdn.microsoft.com/en-us/library/aa363851(v=VS.85).aspx
     },
     },
   
   
Line 79: Line 65:
     /**
     /**
       * Remove a file/directory.
       * Remove a file/directory.
      *
      * Note: OS-accelerated under some platforms.
       */
       */
     remove: function(name)
     remove: function(name)
Line 200: Line 188:
       *
       *
       * Note that some or all fields may be computed lazily.
       * Note that some or all fields may be computed lazily.
      * This makes it possible to fill in fields whose value
      * has already been computed (typically, by directory
      * traversal), without performing a system
      * call to get the value of the other fields.
       *
       *
       * @interface
       * @interface
184

edits

Navigation menu