fileDepth: File depth

View source: R/fileDepth.R

fileDepthR Documentation

File depth

Description

File depth

Usage

fileDepth(path)

Arguments

path

character. File path(s). This function is vectorized and supports multiple files.

Details

This function intentionally doesn't check whether a file exists.

Value

integer. Unnamed vector denoting file path depth. Note that "/" will return 0 here (zero indexed).

Note

Updated 2022-05-31.

Examples

a <- tempdir()
b <- tempfile()
fileDepth(c(a, b))

acidgenomics/AcidBase documentation built on Nov. 29, 2022, 7:39 a.m.