A simple file system addon for SA-MP that provides several useful functions to handle files and directories on Pawn, in a more convenient and comprehensive way.
Name | Description |
---|---|
fs_none | Copies the file in default mode |
fs_skip_existing | Skips the copy process if a file with the same name exists in the path |
fs_overwrite_existing | Overwrites the existing file with the new one |
fs_update_existing | Updates the previous file in the path if a file with the same name exists |
fs_recursive | Recursively copies subdirectories and their files |
fs_copy_symlinks | Copies symbolic links (e.g., Windows Shortcuts) without following the link target |
fs_skip_symlinks | Skips symbolic links (e.g., Windows Shortcuts) |
Name | Description |
---|---|
path | The path where the file will be created |
Name | Description |
---|---|
path | The path of the file to be checked |
Returns | 0 if the file does not exist, and 1 if the file exists |
Name | Description |
---|---|
path | The path where the folder is located |
Returns | The number of files in the specified folder |
Name | Description |
---|---|
path_from | The path where the file is located |
path_to | The path where the file will be moved to |
Name | Description |
---|---|
path_from | The path where the file is located |
path_to | The path where the file will be copied to |
CopyMode | The mode that the file will be copied |
Name | Description |
---|---|
path | The path where the directory will be created |
Name | Description |
---|---|
path | The path where the directory is located |
Returns | false if the directory does not exist, and true if the directory exists |
Name | Description |
---|---|
path | The path where the directory to be deleted is located |
Name | Description |
---|---|
path | The path where the folder is located |
Returns | The number of subdirectories in the specified folder |