-
dir_tree()
now works with paths that need tilde expansion (@dmurdoch, @jennybc, #203). -
dir_create()
now works with absolute paths andrecurse = FALSE
(#204). -
fail=FALSE extended to get_dirent_type (@bellma-lilly, #219)
-
Fix missed test with UTF-8 characters, which now passes on a strict Latin-1 locale.
-
Fix undefined behavior when casting -1 to
size_t
.
dir_ls()
,dir_map()
,dir_walk()
,dir_info()
anddir_tree()
gain arecurse
argument, which can be either aTRUE
orFALSE
(as was supported previously) or a number of levels to recurse. The previous argumentrecursive
has been deprecated.
dir_copy()
gains aoverwrite
argument, to overwrite a given directory (@pasipasi123, #193)
-
dir_create()
now throws a more accurate error message when you try to create a directory in a non-writeable location (#196). -
fs_path
objects now always show 10 characters by default when printed in tibbles (#191). -
path_file()
,path_dir()
andpath_ext()
now return normal character vectors rather than tidy paths (#194). -
path_package()
now works with paths in development packages automatically (#175). -
tests now pass successfully when run in strict Latin-1 locale
-
file_size()
function added as a helper forfile_info("file")$size
(#171) -
is_file_empty()
function added to test for empty files` (#171) -
dir_tree()
function added to print a command line representation of a directory tree, analogous to the unixtree
program (#82). -
Add a comparison vignette to quickly compare base R, fs and shell alternatives (@xvrdm, #168).
-
path_ext_set()
andfile_temp()
now treat extensions with a leading.
and those without equally. e.g.path_ext_set("foo", ext = "bar")
andpath_ext_set("foo", ext = ".bar")
both result in "foo.bar" -
Tidy paths are now always returned with uppercase drive letters on Windows (#174).
-
format.bench_bytes()
now works withstr()
in R 3.5.1+ (#155). -
path_ext()
,path_ext_remove()
, andpath_ext_set()
now work on paths with no extension, andfile_temp()
now prepends a.
to the file extension (#153). -
Link with -pthread by default and fix on BSD systems (#128, #145, #146).
-
file_chown()
can now take agroup_id
parameter as character (@cderv, #162). -
Parameter
browser
infile_show()
now works as described in the documentation (@GegznaV, #154). -
path_real()
now works even if the file does not exist, but there are symlinks further up the path hierarchy (#144). -
colourise_fs_path()
now returns paths uncolored if the colors argument /LS_COLORS
is malformed (#135).
-
This is a small bugfix only release.
-
file_move()
now fall back to copying, then removing files when moving files between devices (which would otherwise fail) (#131, r-lib/usethis#438). -
Fix for a double free when using
warn = TRUE
(#132)
- Patch release to fix tests which left files in the R session directory
-
New
path_wd()
generates paths from the current working directory (#122). -
New
path_has_parent()
determines if a path has a given parent (#116). -
New
file_touch()
used to change access and modification times for a file (#98). -
dir_ls()
,dir_map()
,dir_walk()
,dir_info()
andfile_info()
gain afail
parameter, to signal warnings rather than errors if they are called on a path which is unavailable due to permissions or locked resources (#105).
-
path_tidy()
now always includes a trailing slash for the windows root directory, e.g.C:/
(#124). -
path_ext()
,path_ext_set()
andpath_ext_remove()
now handle paths with non-ASCII characters (#120). -
fs_path
objects now print (without colors) even if the user does not have permission to stat them (#121). -
compatibility with upcoming gcc 8 based Windows toolchain (#119)
-
Experimental support for
/
and+
methods forfs_path
objects (#110). -
file_create()
anddir_create()
now take...
, which is passed topath()
to make construction a little nicer (#80).
-
path_ext()
,path_ext_set()
andpath_ext_remove()
now handle paths with directories including hidden files without extensions (#92). -
file_copy()
now copies files into the directory if the target is a directory (#102).
- fs no longer needs a C++11 compiler, it now works with compilers which support only C++03 (#90).
-
fs_path
fs_bytes
andfs_perm
objects now usemethods::setOldClass()
so that S4 dispatch to their base classes works as intended (#91). -
Fix allocation bug in
path_exists()
usingdelete []
when we should have usedfree()
.
path_abs()
gains astart
argument, to specify where the absolute path should be calculated from (#87).
-
path_ext()
now returnscharacter()
if given 0 length inputs (#89) -
Fix for a memory issue reported by ASAN and valgrind.
-
path_expand()
andpath_home()
now useUSERPROFILE
orHOMEDRIVE
/HOMEPATH
as the user home directory on Windows. This differs from the definition used inpath.expand()
but is consistent with definitions from other programming environments such as python and rust. This is also more compatible with external tools such as git and ssh, both of which put user-level files inUSERPROFILE
by default. To mimic R's (and previous) behavior there are functionspath_expand_r()
andpath_home_r()
. -
Handling missing values are more consistent. In general
is_*
functions always returnFALSE
for missing values,path_*
functions always propagate NA values (NA inputs become NA outputs) anddir_*
file_*
andlink_*
functions error with NA inputs. -
fs functions now preserve tildes in their outputs. Previously paths were always returned with tildes expanded. Users can use
path_expand()
to expand tildes if desired.
- Fix crash when a files user or group id did not exist in the respective database (#84, #58)
- Fix home expansion on systems without readline (#60).
- Fix propagation of NA values in
path_norm()
(#63).
file_chmod()
is now vectorized over both of its arguments (#71).link_create()
now fails silently if an identical link already exists (#77).path_package()
function created as an analog tosystem.file()
which always fails if the package or file does not exist (#75)
-
Tidy paths no longer expand
~
. -
Filesystem modification functions now error for NA inputs. (#48)
-
path()
now returns 0 length output if given any 0 length inputs (#54).
- Removed the autotool system dependency on non-windows systems.
-
dir_delete()
now correctly expands paths (#47). -
dir_delete()
now correctly deletes hidden files and directories (#46). -
link_path()
now checks for an error before trying to make a string, avoiding a crash (#43). -
libuv return paths now marked as UTF-8 strings in C code, fixing encoding issues on windows. (#42)
-
dir_copy()
now copies the directory inside the target if the target is a directory (#51). -
dir_copy()
now works correctly with absolute paths and no longer removes files whenoverwrite = TRUE
.
- Removed the libbsd system dependency on linux
- Initial release
- Added a
NEWS.md
file to track changes to the package.