Description Classes and constructors Coercing functions/methods Main functions/methods Path component selectors and path standardization File and directory locking Convenience functions/methods Author(s) References
Complements base functionality with respect to handling paths of file system ressources.
DirectoryPath.S3:
Constructor function for instances of class
DirectoryPath.S3
FilePath.S3:
Constructor function for instances of class
FilePath.S3
DecomposedPath.S3:
Constructor function for instances of class
DecomposedPath.S3
DirectoryCopyResult.S3:
Constructor function for instances of class
DirectoryCopyResult.S3
DirectoryCopyResults.S3:
Constructor function for instances of class
DirectoryCopyResults.S3
asDirectoryPath:
Clearly denotes a path to a directory ressource
(provided as character) as an actual directory path
of class DirectoryPath.S3. The main reason behind
this is to enable method dispatch based on this class.
asFilePath:
Clearly denotes a path to a file ressource
(provided as character) as an actual file path
of class FilePath.S3. The main reason behind
this is to enable method dispatch based on this class.
asDecomposedPath:
Clearly denotes a path to a file system ressource
(provided as character) as an actual decomposed path
of class DecomposedPath.S3. The main reason behind
this is to enable method dispatch based on this class.
decomposePath:
Decomposes directory and file paths into three components: directory, filename and extension
recomposePath:
Recomposes objects as returned by
decomposePath back into
a character vector.
copyDirectory:
Extends the features of file.copy.
getDirectoryPath:
Based on the output of decomposePath the
directory component is selected.
getFileName:
Based on the output of decomposePath the
filename component is selected.
getFileExtension:
Based on the output of decomposePath the
extension component is selected.
standardizePath:
Extends the features of normalizePath.
The following functions can be used to lock and unlock files and directories.
lockRessource:
Locks a file system ressource by creating a temporary dummy file that denotes a is locked state.
tryLockRessource:
Tries a certain amount of times to lock a file system ressource until it times out.
unlockRessource:
Unlocks a file system ressource previously locked by
lockRessource.
tryunLockRessource:
Tries a certain amount of times to unlock a file system ressource until it times out.
isLockedkRessource:
Checks if a file system ressource is locked.
openRessource:
Opens a ressource with a suitable application. For directories this is the system's default file system browser. For files the user is asked to select a suitable application (only tested on Windows so far).
Janko Thyson janko.thyson@rappster.de
https://github.com/Rappster/filesystr
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.