tests/testthat/_snaps/path.md

path: errors on paths which are too long

Code
  path(paste(rep("a", 1e+05), collapse = ""))
Condition
  Error in `path_tidy()`:
  ! Total path length must be less than PATH_MAX: <path-max>
Code
  do.call(path, as.list(rep("a", 1e+05)))
Condition
  Error in `path_tidy()`:
  ! Total path length must be less than PATH_MAX: <path-max>

path_rel: works for POSIX paths

Code
  path_rel(c("a", "a/b", "a/b/c"), c("a/b", "a"))
Condition
  Error:
  ! `start` must be a single path to a starting directory.


r-lib/fs documentation built on July 4, 2025, 9:24 p.m.