JSFileApi: Difference between revisions

Jump to navigation Jump to search
577 bytes added ,  13 October 2011
(→‎Browsing contents: -forEachFile, -iteration, +contents)
Line 190: Line 190:


== Interfaces ==
== Interfaces ==
=== File Information ===
   
   
     /**
     /**
       * The kind of information that can be found by calling [RawFile.info] or [RawDir.forEachFile].
       * The kind of information that can be found by calling [RawFile.info] or [RawDir.contents].
       *
       *
       * Note that some or all fields may be computed lazily.
       * Note that some or all fields may be computed lazily.
Line 225: Line 226:
         }
         }
     },
     },
=== Directory entries ===
 
    DirEntry: {
        /**
        * The name of the file.
        *
        * Note that there is no guarantee that the file still exists by the time you attempt to open it.
        *
        * @return {string=}
        */
        get name(): { ...
        },
 
        /**
        * All the information that could be gathered about the file without opening it.
        *
        * @return {FileInfo}
        */
        get info(): { ...
            //Precomputed by [RawDir.contents]
        }
    },
 
=== Errors ===
     /**
     /**
       * An exception launched by this module.
       * An exception launched by this module.
184

edits

Navigation menu