dipa: normalize directory paths

Description Usage Arguments Details Value See Also Examples

View source: R/rbsa0.code.r

Description

returns the paths contained into chemins in a normalized way. No check of existence of the path(s) is performed, for that the function fidi9(dipa(...)) could be used.

Usage

1
2
 
  dipa(chemins,sep=.Platform$file.sep) 

Arguments

chemins

character supposed to contain directory paths.

sep

The separator to use.

Details

Multiple sep are removed as well as any final sep with the exception of sep being the unique path, that is the root path in Linux operating system.

Value

a character with same length as chemins

See Also

fidi9

Examples

1
2
 
  dipa(c("/","~","~/.bashrc",getwd(),"toto.txt")); 

rbsa documentation built on May 2, 2019, 6:07 p.m.