|
OpenSpace3D libs
OpenSpace 3D libraries for plugITs and OS3D developer
|
Functions | |
| getPathFile (longfile, file) | |
| Get a file path and file name from a path. | |
| getlastPathDir (path) | |
| Get the last directory from a path. | |
| getFileExt (file) | |
| Get file extension from a path. | |
| getFilePathWithoutExt (file) | |
| Get file path without the file extension. | |
| getFileDirectory (file) | |
| Get path without the file name. | |
| getFileNameWithoutExt (file) | |
| Get the file name without Path and Extension. | |
| getRelativePath (path, file) | |
| Manage relative paths (relativ files should start with ./) | |
| createFolder (path) | |
| Create a new folder. | |
| getShortName (name) | |
| Compute a name with only allowed char from a string. | |
| getFilesFromDir (dir, mask) | |
| Get the files list from a directory, with a file extension mask. | |
| getFilesFromDirFilter (dir, mask, cbfilter) | |
| Get the files list from a directory, with a file extension mask and filter. | |
| getFilesFromDir2 (dir, mask) | |
| Get the files list from a directory, with a file extension mask and case sensitive. | |
| getFilesFromDirFilter2 (dir, mask, cbfilter) | |
| Get the files list from a directory, with a file extension mask and case sensitive and filter. | |
| getFilesNamesFromDir (dir, mask) | |
| Get the files names list from a directory, with a file extension mask. | |
| getFilesNamesFromDir2 (dir, mask) | |
| Get the files names list from a directory, with a file extension mask and case sensitive. | |
| sanitizeFileName (file) | |
| Replace spaces in a file name and removes special characters that are unsupported on some platforms. | |
| getDirListFromPath (path) | |
| List the directories of a path. | |
| getFilesFromDirRecursive (dir) | |
| List the files from a directory path recursively. | |
| getFilesFromDirFilterRecursive (dir, mask, cbfilter) | |
| Get the files list from a directory, with a file extension mask and filter recursively. | |
| getFilesFromDirRecursive2 (dir) | |
| List the files from a directory path recursively case sensitive. | |
| getFilesFromDirFilterRecursive2 (dir, mask, cbfilter) | |
| Get the files list from a directory, with a file extension mask and case sensitive and filter recursively. | |
| cleanDirectory (dir) | |
| Delete all the files of a directory. | |
| getDirectoryWithoutLastSlash (dir) | |
| Remove the last '/' from a directory path. | |
| getDirectoryWithoutFirstSlash (dir) | |
| Remove the first '/' from a directory path. | |
File tools
| getPathFile | ( | longfile | , |
| file | |||
| ) |
Get a file path and file name from a path.
Prototype: fun [S S] [S S]
| S | : the path |
| S | : set to nil |
| getlastPathDir | ( | path | ) |
Get the last directory from a path.
Prototype: fun [S] S
| S | : the path |
| getFileExt | ( | file | ) |
Get file extension from a path.
Prototype: fun [S] S
| S | : the path |
| getFilePathWithoutExt | ( | file | ) |
Get file path without the file extension.
Prototype: fun [S] S
| S | : the path |
| getFileDirectory | ( | file | ) |
Get path without the file name.
Prototype: fun [S] S
| S | : the path |
| getFileNameWithoutExt | ( | file | ) |
Get the file name without Path and Extension.
Prototype: fun [S] S
| S | : the path |
| getRelativePath | ( | path | , |
| file | |||
| ) |
Manage relative paths (relativ files should start with ./)
Prototype: fun [S] S
| S | : the path to add |
| S | : the relative file path |
| createFolder | ( | path | ) |
Create a new folder.
Prototype: fun [S] S
| S | : the path to add |
| getShortName | ( | name | ) |
Compute a name with only allowed char from a string.
Prototype: fun [S] S
| S | : original string |
| getFilesFromDir | ( | dir | , |
| mask | |||
| ) |
Get the files list from a directory, with a file extension mask.
Prototype: fun [S [S r1]] [S r1]
| S | : the path to list |
| [S | r1] : a list of string mask (ex : "pkg"::"bmp"::nil) |
| getFilesFromDirFilter | ( | dir | , |
| mask | , | ||
| cbfilter | |||
| ) |
Get the files list from a directory, with a file extension mask and filter.
Prototype: fun [S [S r1] fun [S] I ] [S r1]
| S | : the path to list |
| [S | r1] : a list of string mask (ex : "pkg"::"bmp"::nil) |
| getFilesFromDir2 | ( | dir | , |
| mask | |||
| ) |
Get the files list from a directory, with a file extension mask and case sensitive.
Prototype: fun [S [S r1]] [S r1]
| S | : the path to list |
| [S | r1] : a list of string mask (ex : "pkg"::"bmp"::nil) |
| getFilesFromDirFilter2 | ( | dir | , |
| mask | , | ||
| cbfilter | |||
| ) |
Get the files list from a directory, with a file extension mask and case sensitive and filter.
Prototype: fun [S [S r1] fun [S] I ] [S r1]
| S | : the path to list |
| [S | r1] : a list of string mask (ex : "pkg"::"bmp"::nil) |
| getFilesNamesFromDir | ( | dir | , |
| mask | |||
| ) |
Get the files names list from a directory, with a file extension mask.
Prototype: fun [S [S r1]] [S r1]
| S | : the path to list |
| [S | r1] : a list of string mask (ex : "pkg"::"bmp"::nil) |
| getFilesNamesFromDir2 | ( | dir | , |
| mask | |||
| ) |
Get the files names list from a directory, with a file extension mask and case sensitive.
Prototype: fun [S [S r1]] [S r1]
| S | : the path to list |
| [S | r1] : a list of string mask (ex : "pkg"::"bmp"::nil) |
| sanitizeFileName | ( | file | ) |
Replace spaces in a file name and removes special characters that are unsupported on some platforms.
Prototype: fun [S] S
| S | : the path to sanitize |
| getDirListFromPath | ( | path | ) |
List the directories of a path.
Prototype: fun [S] [S r1]
| S | : the path directory |
| getFilesFromDirRecursive | ( | dir | ) |
List the files from a directory path recursively.
Prototype: fun [S] [S r1]
| S | : the path directory |
| getFilesFromDirFilterRecursive | ( | dir | , |
| mask | , | ||
| cbfilter | |||
| ) |
Get the files list from a directory, with a file extension mask and filter recursively.
Prototype: fun [S [S r1] fun [S] I ] [S r1]
| S | : the path to list |
| [S | r1] : a list of string mask (ex : "pkg"::"bmp"::nil) |
| getFilesFromDirRecursive2 | ( | dir | ) |
List the files from a directory path recursively case sensitive.
Prototype: fun [S] [S r1]
| S | : the path directory |
| getFilesFromDirFilterRecursive2 | ( | dir | , |
| mask | , | ||
| cbfilter | |||
| ) |
Get the files list from a directory, with a file extension mask and case sensitive and filter recursively.
Prototype: fun [S [S r1] fun [S] I ] [S r1]
| S | : the path to list |
| [S | r1] : a list of string mask (ex : "pkg"::"bmp"::nil) |
| cleanDirectory | ( | dir | ) |
Delete all the files of a directory.
Prototype: fun [S] I
| S | : the path directory |
| getDirectoryWithoutLastSlash | ( | dir | ) |
Remove the last '/' from a directory path.
Prototype: fun [S] I
| S | : the directory path |
| getDirectoryWithoutFirstSlash | ( | dir | ) |
Remove the first '/' from a directory path.
Prototype: fun [S] I
| S | : the directory path |