示例#1
0
文件: File.js 项目: Jayk56/brackets
 /*
  * Model for a File.
  *
  * This class should *not* be instantiated directly. Use FileSystem.getFileForPath,
  * FileSystem.resolve, or Directory.getContents to create an instance of this class.
  *
  * See the FileSystem class for more details.
  *
  * @constructor
  * @param {!string} fullPath The full path for this File.
  * @param {!FileSystem} fileSystem The file system associated with this File.
  */
 function File(fullPath, fileSystem) {
     this._isFile = true;
     FileSystemEntry.call(this, fullPath, fileSystem);
 }
示例#2
0
 /*
  * @constructor
  * Model for a file system Directory.
  *
  * This class should *not* be instantiated directly. Use FileSystem.getDirectoryForPath,
  * FileSystem.resolve, or Directory.getContents to create an instance of this class.
  *
  * Note: Directory.fullPath always has a trailing slash.
  *
  * See the FileSystem class for more details.
  *
  * @param {!string} fullPath The full path for this Directory.
  * @param {!FileSystem} fileSystem The file system associated with this Directory.
  */
 function Directory(fullPath, fileSystem) {
     this._isDirectory = true;
     FileSystemEntry.call(this, fullPath, fileSystem);
 }