Functions | |
BOOLEAN | files.exists (STRING path) |
Allows to find if a file or folder exists. More... | |
STRING | files.cdir () |
Allows to know the actual work path. More... | |
NIL | files.cdir (STRING path) |
Change the work path to the specified path. More... | |
STRING | files.nofile (STRING path) |
Remove the file from a specified path. More... | |
STRING | files.nopath (STRING path) |
Remove the folder from a specified path. More... | |
NUMBER | files.rename (STRING name, STRING new) |
Allows to rename a file or folder. More... | |
NUMBER | files.copy (STRING src, STRING dst) |
Copy a file or folder recursively and overwrite the files in the destination folder. More... | |
NUMBER | files.move (STRING src, STRING dst) |
Move a file or folder recursively and overwrite the files in the destination folder. More... | |
BOOLEAN | files.delete (STRING path) |
Delete a file or folder recursively. More... | |
NIL | files.mkdir (STRING path) |
Create a folder. More... | |
NUMBER | files.size (STRING path) |
File/Folder Size (Bytes). More... | |
STRING | files.ext (STRING path) |
Allows to know the extension of a file. More... | |
TABLE | files.list (STRING path) |
List a directory including folders and files. More... | |
TABLE | files.listfiles (STRING path) |
List a directory including only files. More... | |
TABLE | files.listdirs (STRING path) |
List a directory including only folders. More... | |
TABLE | files.scan (STRING src) |
Gets a content list of a compressed file (zip or rar). More... | |
NUMBER | files.extractfile (STRING src, STRING filename, STRING dst) |
Extracts an specific file inside a compressed file (zip or rar). More... | |
NUMBER | files.extractfile (STRING src, STRING filename, STRING dst, STRING pass) |
Extracts an specific file inside a compressed file (zip or rar). More... | |
NUMBER | files.threadextractfile (STRING src, STRING filename, STRING dst) |
Extracts an specific file inside a compressed file (zip or rar) in mode THREAD. More... | |
NUMBER | files.threadextractfile (STRING src, STRING filename, STRING dst, STRING pass) |
Extracts an specific file inside a compressed file (zip or rar) in mode THREAD. More... | |
NUMBER | files.extract (STRING src, STRING dst) |
Function for extracting files in .zip and .rar. More... | |
NUMBER | files.extract (STRING src, STRING dst, STRING pass) |
Function for extracting files in .zip and .rar. More... | |
NUMBER | files.threadextract (STRING src, STRING dst) |
Function for extracting files in .zip and .rar in mode THREAD. More... | |
NUMBER | files.threadextract (STRING src, STRING dst, STRING pass) |
Function for extracting files in .zip and .rar in mode THREAD. More... | |
File managing.
BOOLEAN files.exists | ( | STRING | path | ) |
Allows to find if a file or folder exists.
path | Path of the file or folder. |
STRING files.cdir | ( | ) |
Allows to know the actual work path.
NIL files.cdir | ( | STRING | path | ) |
Change the work path to the specified path.
path | The new work path. |
STRING files.nofile | ( | STRING | path | ) |
Remove the file from a specified path.
path | The path of the file / folder. |
STRING files.nopath | ( | STRING | path | ) |
Remove the folder from a specified path.
path | The path of the file / folder. |
NUMBER files.rename | ( | STRING | name, |
STRING | new | ||
) |
Allows to rename a file or folder.
name | The path of the file / folder. |
new | The new name of the file / folder. |
NUMBER files.copy | ( | STRING | src, |
STRING | dst | ||
) |
Copy a file or folder recursively and overwrite the files in the destination folder.
src | The path of the file / folder to copy. |
dst | The path of the folder destination. |
NUMBER files.move | ( | STRING | src, |
STRING | dst | ||
) |
Move a file or folder recursively and overwrite the files in the destination folder.
src | The path of the file / folder to move. |
dst | The path of the folder destination. |
BOOLEAN files.delete | ( | STRING | path | ) |
Delete a file or folder recursively.
path | The path of the file / folder. |
NIL files.mkdir | ( | STRING | path | ) |
Create a folder.
path | Path of the folder to create. |
NUMBER files.size | ( | STRING | path | ) |
File/Folder Size (Bytes).
path | File/Folder Path. |
STRING files.ext | ( | STRING | path | ) |
Allows to know the extension of a file.
path | File Path |
TABLE files.list | ( | STRING | path | ) |
List a directory including folders and files.
path | Directory path. |
TABLE files.listfiles | ( | STRING | path | ) |
List a directory including only files.
path | Directory path. |
TABLE files.listdirs | ( | STRING | path | ) |
List a directory including only folders.
path | Directory path. |
TABLE files.scan | ( | STRING | src | ) |
Gets a content list of a compressed file (zip or rar).
src | Path to the compressed file. |
NUMBER files.extractfile | ( | STRING | src, |
STRING | filename, | ||
STRING | dst | ||
) |
Extracts an specific file inside a compressed file (zip or rar).
src | Path to the compressed file. |
filename | File to extract (can be easily obtained using files.scan()). |
dst | Path where the file will be extracted. |
NUMBER files.extractfile | ( | STRING | src, |
STRING | filename, | ||
STRING | dst, | ||
STRING | pass | ||
) |
Extracts an specific file inside a compressed file (zip or rar).
src | Path to the compressed file. |
filename | File to extract (can be easily obtained using files.scan()). |
dst | Path where the file will be extracted. |
pass | Key or Password if required. |
NUMBER files.threadextractfile | ( | STRING | src, |
STRING | filename, | ||
STRING | dst | ||
) |
Extracts an specific file inside a compressed file (zip or rar) in mode THREAD.
src | Path to the compressed file. |
filename | File to extract (can be easily obtained using files.scan()). |
dst | Path where the file will be extracted. This is a list of all of the available constants and their values:
|
NUMBER files.threadextractfile | ( | STRING | src, |
STRING | filename, | ||
STRING | dst, | ||
STRING | pass | ||
) |
Extracts an specific file inside a compressed file (zip or rar) in mode THREAD.
src | Path to the compressed file. |
filename | File to extract (can be easily obtained using files.scan()). |
dst | Path where the file will be extracted. |
pass | Key or Password if required. This is a list of all of the available constants and their values:
|
NUMBER files.extract | ( | STRING | src, |
STRING | dst | ||
) |
Function for extracting files in .zip and .rar.
src | Is the path of the file to extract. |
dst | Is the path where the files will be extracted. |
NUMBER files.extract | ( | STRING | src, |
STRING | dst, | ||
STRING | pass | ||
) |
Function for extracting files in .zip and .rar.
src | Is the path of the file to extract. |
dst | Is the path where the files will be extracted. |
pass | Key or Password if required. |
NUMBER files.threadextract | ( | STRING | src, |
STRING | dst | ||
) |
Function for extracting files in .zip and .rar in mode THREAD.
src | Is the path of the file to extract. |
dst | Is the path where the files will be extracted. This is a list of all of the available constants and their values:
|
NUMBER files.threadextract | ( | STRING | src, |
STRING | dst, | ||
STRING | pass | ||
) |
Function for extracting files in .zip and .rar in mode THREAD.
src | Is the path of the file to extract. |
dst | Is the path where the files will be extracted. |
pass | Key or Password if required. This is a list of all of the available constants and their values:
|