Target File System
The following is a list of tfile commands:
tfile open
Open file
Syntax
tfile open <path>
Open specified file
Returns
File handle
tfile close
Close file handle
Syntax
tfile close <handle>
Close specified file handle
Returns
tfile read
Read file handle
Syntax
tfile read <handle>
Read from specified file handle
Options
Option | Description |
---|---|
-offset <seek> |
File offset to read from |
Returns
Read data
tfile write
Write file handle
Syntax
tfile write <handle>
Write to specified file handle
Options
Option | Description |
---|---|
-offset <seek> |
File offset to write to |
Returns
tfile stat
Get file attributes from path
Syntax
tfile stat <handle>
Get file attributes for <path>
Returns
File attributes
tfile lstat
Get link file attributes from path
Syntax
tfile lstat <path>
Get link file attributes for <path>
Returns
Link file attributes
tfile fstat
Get file attributes from handle
Syntax
tfile fstat <handle>
Get file attributes for <handle>
Returns
File attributes
tfile setstat
Set file attributes for path
Syntax
tfile setstat <path> <attributes>
Set file attributes for <path>
Returns
File attributes
tfile fsetstat
Set file attributes for handle
Syntax
tfile fsetstat <handle> <attributes>
Set file attributes for <handle>
Returns
File attributes
tfile remove
Remove path
Syntax
tfile remove <path>
Remove <path>
Returns
tfile rmdir
Remove directory
Syntax
tfile rmdir <path>
Remove directory <path>
Returns
tfile mkdir
Create directory
Syntax
tfile mkdir <path>
Make directory <path>
Returns
tfile realpath
Get real path
Syntax
tfile realpath <path>
Get real path of <path>
Returns
Real path
tfile rename
Rename path
Syntax
tfile rename <old path> <new path>
Rename file or directory
Returns
tfile readlink
Read symbolic link
Syntax
tfile readlink <path>
Read link file
Returns
Target path
tfile symlink
Create symbolic link
Syntax
tfile symlink <old path> <new path>
Symlink file or directory
Returns
tfile opendir
Open directory
Syntax
tfile opendir <path>
Open directory <path>
Returns
File handle
tfile readdir
Read directory
Syntax
tfile readdir <file handle>
Read directory
Returns
File handle
tfile copy
Copy target file
Syntax
tfile copy <src> <dest>
Copy file <src>
to <dest>
Returns
Copy file locally on target
tfile user
Get user attributes
Syntax
tfile user
Get user attributes
Returns
User information
tfile roots
Get file system roots
Syntax
tfile roots
Get file system roots
Returns
List of file system roots
tfile ls
List directory contents
Syntax
tfile ls <path>
List directory content
Returns
Directory content