getAbsolutePath.File: Gets the absolute pathname string

Description Usage Arguments Details Value Author(s) See Also

Description

Gets the absolute pathname string.

Usage

1
2
## S3 method for class 'File'
getAbsolutePath(this, expandShortcuts=this$expandShortcuts, ...)

Arguments

expandShortcuts

If TRUE, Microsoft Windows Shortcut (*.lnk) files are recognized and followed, otherwise not.

Details

If expandShortcuts==TRUE, each component, call it parent, in the absolute path is processed from the left to the right as follows: 1. If a "real" directory of name parent exists, it is followed. 2. Otherwise, if Microsoft Windows Shortcut file with name parent.lnk exists, it is read. If its local target exists, that is followed, otherwise its network target is followed. 3. If no valid existing directory was found in (1) or (2), the expanded this far followed by the rest of the pathname is returned quietly. 4. If all of the absolute path was expanded successfully the expanded absolute path is returned.

Value

Returns a character string of the absolute pathname.

Author(s)

Henrik Bengtsson (http://www.braju.com/R/)

See Also

For more information see File.


HenrikBengtsson/R.io documentation built on May 6, 2019, 11:54 p.m.