getLockFileName: Get Name of Lock File

Description Usage Arguments Author(s) References See Also Examples

Description

Returns the name of the dummy file used for locking a file system ressource.

Usage

1
getLockFileName(path, lock_suffix = "_LOCK", ...)

Arguments

path

Signature argument. Object containing file path information.

lock_suffix

character. Suffix to denote the lock dummy.

...

Further arguments to be passed to subsequent functions/methods.

Author(s)

Janko Thyson janko.thyson@rappster.de

References

https://github.com/Rappster/filesystr

See Also

getLockFileName-character-method

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
## Not run: 

## Non-existing file system ressource //
path <- file.path(tempdir(), "test.txt")
getLockFileName(path = path)

## Files //
file.create(path)
getLockFileName(path = path)

## Directories //
getLockFileName(path = tempdir())


## End(Not run)

rappster/filesystr documentation built on May 26, 2019, 11:17 p.m.