Releases: r-lib/fs
fs 1.4.1
fs 1.3.2
-
fs now passes along
CPPFLAGS
during compilation of libuv, fixing an issue that could
prevent compilation from source on macOS Catalina. (@kevinushey, #229) -
fs now compiles on alpine linux (#210)
-
dir_create()
now works with absolute paths andrecurse = FALSE
(#204). -
dir_tree()
now works with paths that need tilde expansion (@dmurdoch, @jennybc, #203). -
file_info()
now returns file sizes with the proper classes ("fs_bytes" and "numeric"), rather than just "fs_bytes" (#239) -
get_dirent_type()
gains afail
argument (@bellma-lilly, #219) -
is_dir()
,is_file()
,is_file_empty()
andfile_info()
gain afollow
argument, to follow links and return information about the linked file rather than the link itself (#198) -
path()
now follows "tidy" recycling rules, namely only consistent or length 1 inputs are recycled. (#238) -
path()
now errors if the path given or constructed will exceedPATH_MAX
(#233). -
path_ext_set()
now works with multiple paths (@maurolepore, #208).
fs 1.3.1
fs 1.3.0
Breaking changes
dir_ls()
,dir_map()
,dir_walk()
,dir_info()
anddir_tree()
gain a
recurse
argument, which can be either aTRUE
orFALSE
(as was supported
previously) or a number of levels to recurse. The previous argument
recursive
has been deprecated.
New features
dir_copy()
gains aoverwrite
argument, to overwrite a given directory
(@pasipasi123, #193)
Minor improvements and fixes
-
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
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 unixtree
program (#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_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).
fs v1.2.6
fs v1.2.3
fs v1.2.2
Features
- fs no longer needs a C++11 compiler, it now works with compilers which
support only C++03 (#90).
Bugfixes
-
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()
.
fs v1.2.1
fs 1.2.0
Breaking changes
-
path_expand()
andpath_home()
now useUSERPROFILE
or
HOMEDRIVE
/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 usepath_expand()
to expand
tildes if desired.
Bugfixes
- 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).