Description Usage Arguments Author(s) References See Also Examples
Lock a file by placing a dummy file in the same directory.
1 | lockRessource(path, strict = FALSE, ...)
|
path |
Signature argument. Object containing file system path information. |
strict |
|
... |
Further arguments passed to subsequent functions/methods.
In particular:
|
Janko Thyson janko.thyson@rappster.de
https://github.com/Rappster/filesystr
lockRessource-character-method
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 | ## Not run:
## Create example content
path <- file.path(tempdir(), "test/registry.rdata")
dir.create(dirname(path), showWarnings = FALSE)
file.create(path)
## Open directory in file system browser //
openRessource(path = dirname(path))
## File //
lockRessource(path = path)
## Note additional '*FILE_LOCK' file in directory
unlockRessource(path = path)
## Note '*FILE_LOCK' file in directory has been removed again
## Directory //
lockRessource(path = dirname(path))
## Note additional '*DIR_LOCK' file in directory
unlockRessource(path = dirname(path))
## Note '*DIR_LOCK' file in directory has been removed again
## Non-existing ressources //
lockRessource(path = "abcd")
try(lockRessource(path = "abcd", strict = TRUE))
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.