Represents the file-system and contains a broad set of operations for
manipulating files. An asynchronous and a synchronous version of each
operation is provided. The asynchronous versions take a handler as a
final argument which is called when the operation completes or an error
occurs. The handler is called with two arguments; the first an exception,
this will be nil if the operation has succeeded. The second is the result
- this will be nil if the operation failed or there was no result to
return. The synchronous versions return the results, or throw exceptions
directly.
|
|
|
|
|
copy_sync(frm,
to)
Synchronous version of FileSystem.copy |
source code
|
|
|
|
|
copy_recursive_sync(frm,
to)
Synchronous version of FileSystem.copy_recursive |
source code
|
|
|
|
|
move_sync(frm,
to)
Synchronous version of FileSystem.move |
source code
|
|
|
|
|
truncate_sync(path,
len)
Synchronous version of FileSystem.truncate |
source code
|
|
|
chmod(path,
perms,
dir_perms=None,
handler=None)
Change the permissions on a file, asynchronously. |
source code
|
|
|
chmod_sync(path,
perms,
dir_perms=None)
Synchronous version of FileSystem.chmod |
source code
|
|
|
props(path,
handler)
Get file properties for a file, asynchronously. |
source code
|
|
|
props_sync(path)
Synchronous version of FileSystem.props |
source code
|
|
|
link(link,
existing,
handler)
Create a hard link, asynchronously.. |
source code
|
|
|
link_sync(link,
existing)
Synchronous version of FileSystem.link |
source code
|
|
|
|
|
sym_link_sync(link,
existing)
Synchronous version of FileSystem.sym_link |
source code
|
|
|
|
|
unlinkSync(link)
Synchronous version of FileSystem.unlink |
source code
|
|
|
|
|
read_sym_link_sync(link)
Synchronous version of FileSystem.read_sym_link |
source code
|
|
|
|
|
delete_sync(path)
Synchronous version of FileSystem.delete |
source code
|
|
|
|
|
delete_recursive_sync(path)
Synchronous version of FileSystem.delete_recursive |
source code
|
|
|
mkdir(path,
perms=None,
handler=None)
Create a directory, asynchronously. |
source code
|
|
|
mkdir_sync(path,
perms=None)
Synchronous version of FileSystem.mkdir |
source code
|
|
|
mkdir_with_parents(path,
perms=None,
handler=None)
Create a directory, and create all it's parent directories if they do
not already exist, asynchronously. |
source code
|
|
|
mkdir_with_parents_sync(path,
perms=None)
Synchronous version of FileSystem.mkdir_with_parents |
source code
|
|
|
|
|
read_dir_sync(path,
filter=None)
Synchronous version of FileSystem.read_dir |
source code
|
|
|
|
|
read_file_as_buffer_sync(path)
Synchronous version of FileSystem.read_file_as_buffer |
source code
|
|
|
|
|
write_buffer_to_file_sync(path,
buffer)
Synchronous version of FileSystem.write_buffer_to_file |
source code
|
|
|
open(path,
perms=None,
read=True,
write=True,
create_new=True,
flush=False,
handler=None)
Open a file on the file system, asynchronously. |
source code
|
|
|
open_sync(path,
perms=None,
read=True,
write=True,
create_new=True,
flush=False)
Synchronous version of FileSystem.open |
source code
|
|
|
|
|
create_file_sync(path,
perms=None)
Synchronous version of FileSystem.create_file |
source code
|
|
|
|
|
exists_sync(path)
Synchronous version of FileSystem.exists |
source code
|
|
|
|
|
fs_props_sync(path)
Synchronous version of FileSystem.fs_props |
source code
|
|