Handle trailing slashes in collect_results! #181
Labels
bug
Something isn't working
data
Related to data management
good first issue
Easy issue good for newcomers
update
Updates in the source code or documentation are necessary.
When the
folder
argument tocollect_results!
contains a trailing slash (e.g/home/lhupe/coolresults/
), the default setting forfilename
breaks. The result file will be saved as/home/lhupe/coolresults/results_.bson
. This has the unfortunate side effect that on the next run,collect_results!
will create an entry for its own cache file.While this is not a bug of
DrWatson
(the issue is withBase.splitdir
, which naively splits paths on the final separator), it would be nice to account for this in the default definition offilename
(e.g. usingrstrip(folder, '/')
to remove trailing slashes).The text was updated successfully, but these errors were encountered: