pathkind: pathkind finds the type of separator used in a path

View source: R/rutils.R

pathkindR Documentation

pathkind finds the type of separator used in a path

Description

pathkind finds the type of separator used in a path, this is either a '/' or a '\'

Usage

pathkind(inpath)

Arguments

inpath
  • the path to be analysed

Value

the type of path divider, either a 0 = '\' or a 1 = '/'

Examples

indir <- "C:/Users/Malcolm/Dropbox/rcode2/aMSE/data-raw"
pathkind(indir)

haddonm/codeutils documentation built on April 15, 2024, 1:02 p.m.