JSFileApi: Difference between revisions

Jump to navigation Jump to search
111 bytes removed ,  6 October 2011
→‎Constants: -tmpDir (not portable enough)
(→‎Problems addressed by this API: more details on problems addressed)
(→‎Constants: -tmpDir (not portable enough))
Line 106: Line 106:


     /**
     /**
       * Return the location of the directory/folder used to store temporary files.
       * Return the location of the directory/folder used to store user profile
       *
       *
       * Computed lazily, cached.
       * Computed lazily, cached.
Line 112: Line 112:
       * @return {DirectoryDescriptor}
       * @return {DirectoryDescriptor}
       */
       */
     get tmpDir() {
     get profileDir() {
  //All platforms: use [nsIDirectoryService] [NS_OS_TEMP_DIR] to get the directory the first time, cache it.
  //All platforms: use [nsIDirectoryService] to get the directory the first time, cache it.
     },
     },
      
      
    //Same behavior
    get profileDir() {
    },
    get currentWorkingDir() {
    },
    
    
     //TODO: Add other well-known directories.
     //TODO: Add other well-known directories.
184

edits

Navigation menu