fs 1.2.0
Breaking changes
-
path_expand()andpath_home()now useUSERPROFILEor
HOMEDRIVE/HOMEPATHas 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 inUSERPROFILEby 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 returnFALSEfor 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).