fs 1.2.7
New features
-
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 unixtreeprogram (#82). -
Add a comparision vignette to quickly compare base R, fs and shell
alterantives (@xvrdm, #168).
Minor improvements and fixes
-
path_ext_set()andfile_temp()now treat extensions with a leading.
and those without equally. e.g.path_ext_set("foo", ext = "bar")and
path_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_idparameter as character (@cderv, #162). -
Parameter
browserinfile_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_COLORSis malformed (#135).