getRelativePath

0th

Percentile

Gets the relative pathname relative to a directory

Usage
## S3 method for class 'default}(pathname, relativeTo=getwd(), caseSensitive=NULL, ...)':
getRelativePathundefined

Gets the relative pathname relative to a directory.

pathname{A character string of the pathname to be converted into
   an absolute pathname.}
 relativeTo{A character string of the reference pathname.}
 caseSensitive{If TRUE, the comparison is case sensitive, otherwise
   not.  If NULL, it is decided from the relative path.}
 ...{Not used.}

Returns a character string of the relative pathname.

Non-case sensitive comparison
{ If caseSensitive == NULL, the relative path is used to decide if the comparison should be done in a case-sensitive mode or not. The current check is if it is a Windows path or not, that is, if the relative path starts with a device letter, then the comparison is non-case sensitive. } [object Object] getAbsolutePath(). isAbsolutePath(). IO programming
Aliases
  • getRelativePath.default
  • getRelativePath
Documentation reproduced from package R.utils, version 0.7.9, License: LGPL version 2.1 or newer (the releases)

Community examples

Looks like there are no examples yet.