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 Jan. 28, 2024, 2:59 a.m.