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/r-acidbase documentation built on Jan. 12, 2024, 3:56 a.m.