2424
2525## Keywords
2626* `suffix = "jld2", prefix = default_prefix(config)` : Used in [`savename`](@ref).
27- * `tag::Bool = get(ENV, "DRWATSON_TAG", istaggable(suffix))` : Save the file
27+ * `tag::Bool = get(ENV, "DRWATSON_TAG", istaggable(suffix))` : Save the file
2828 using [`tagsave`](@ref) if `true` (which is the default).
2929* `gitpath, storepatch` : Given to [`tagsave`](@ref) if `tag` is `true`.
3030* `force = false` : If `true` then don't check if file `s` exists and produce
@@ -43,10 +43,10 @@ produce_or_load(f::Function, c; kwargs...) = produce_or_load(c, f; kwargs...)
4343produce_or_load (f:: Function , path, c; kwargs... ) = produce_or_load (path, c, f; kwargs... )
4444function produce_or_load (path, c, f:: Function ;
4545 suffix = " jld2" , prefix = default_prefix (c),
46- tag:: Bool = get (ENV , " DRWATSON_TAG" , istaggable (suffix)),
46+ tag:: Bool = get (ENV , " DRWATSON_TAG" , istaggable (suffix)),
4747 gitpath = projectdir (), loadfile = true ,
48- storepatch:: Bool = get (ENV , " DRWATSON_STOREPATCH" , false ),
49- force = false , verbose = true , wsave_kwargs = Dict (),
48+ storepatch:: Bool = get (ENV , " DRWATSON_STOREPATCH" , false ),
49+ force = false , verbose = true , wsave_kwargs = Dict (),
5050 kwargs...
5151 )
5252
@@ -140,10 +140,10 @@ enable compression.
140140The keyword `safe = get(ENV, "DRWATSON_SAFESAVE", false)` decides whether
141141to save the file using [`safesave`](@ref).
142142"""
143- function tagsave (file, d;
144- gitpath = projectdir (),
145- safe:: Bool = get (ENV , " DRWATSON_SAFESAVE" , false ),
146- storepatch:: Bool = get (ENV , " DRWATSON_STOREPATCH" , false ),
143+ function tagsave (file, d;
144+ gitpath = projectdir (),
145+ safe:: Bool = get (ENV , " DRWATSON_SAFESAVE" , false ),
146+ storepatch:: Bool = get (ENV , " DRWATSON_STOREPATCH" , false ),
147147 force = false , source = nothing , kwargs...
148148 )
149149 d2 = tag! (d, gitpath= gitpath, storepatch= storepatch, force= force, source= source)
222222
223223# recursively move files to increased backup number
224224function recursively_clear_path (cur_path)
225- isfile (cur_path) || return
225+ ispath (cur_path) || return
226226 new_path= increment_backup_num (cur_path)
227- if isfile (new_path)
227+ if ispath (new_path)
228228 recursively_clear_path (new_path)
229229 end
230230 mv (cur_path, new_path)
0 commit comments