const RemoteFile = brackets.getModule("filesystem/RemoteFile")Kind: global class
Model for a RemoteFile.
This class should not be instantiated directly. Use FileSystem.getFileForPath
See the FileSystem class for more details.
| Param | Type | Description |
|---|---|---|
| fullPath | string |
The full path for this File. |
| fileSystem | FileSystem |
The file system associated with this File. |
Helpful toString for debugging and equality check purposes
Kind: instance method of RemoteFile
Returns the stats for the remote entry.
Kind: instance method of RemoteFile
| Param | Type | Description |
|---|---|---|
| callback | function |
Callback with a FileSystemError string or FileSystemStats object. |
Reads a remote file.
Kind: instance method of RemoteFile
| Param | Type | Description |
|---|---|---|
| [options] | Object |
Currently unused. |
| callback | function |
Callback that is passed the FileSystemError string or the file's contents and its stats. |
Write a file.
Kind: instance method of RemoteFile
| Param | Type | Description |
|---|---|---|
| data | string |
Data to write. |
| [options] | object |
Currently unused. |
| [callback] | function |
Callback that is passed the FileSystemError string or the file's new stats. |
Check if the remote file exists or not
Kind: instance method of RemoteFile
| Param | Type |
|---|---|
| callback | function |
Unlink the remote file
Kind: instance method of RemoteFile
| Param | Type |
|---|---|
| callback | function |
Rename the remote file
Kind: instance method of RemoteFile
| Param | Type |
|---|---|
| callback | function |
Move the remote file to trash
Kind: instance method of RemoteFile
| Param | Type |
|---|---|
| callback | function |