extract.drive: Extract drive letter from full path (not vectorized)

Description Usage Arguments Value Author(s)

View source: R/file-functions.R

Description

fn the full path to a single file. This function identifies the drive letter (if there is one). There is a vectorized version of this function (see link below). Three situations (1) None : No drive is given. Drive="" Rest=x (2) One : The drive is given. Drive=before Rest=after (3) Two+ : Nonsense syntax. Drive=before.last Rest=after.last See also extract.drive.vec and split.filename.

Usage

1
none

Arguments

fn

is the full path to a file such as "c:/data/catest.txt".

drive.delimeter

is normally ":".

Value

list(org=fn, drive=before, rest=after)

Author(s)

Claus E. Andersen


claus-e-andersen/clanTools documentation built on Oct. 23, 2020, 7:59 a.m.