File tree Expand file tree Collapse file tree 2 files changed +14
-3
lines changed Expand file tree Collapse file tree 2 files changed +14
-3
lines changed Original file line number Diff line number Diff line change @@ -156,6 +156,12 @@ A list of prominent changes can be found below. (With thanks to Lea Waller for t
156
156
* ``NormalizeMotionParams `` now under ``confounds ``.
157
157
* ``FMRISummary ``, ``CompCorVariancePlot ``, ``ConfoundsCorrelationPlot `` from ``plotting ``
158
158
159
+ 1.3.7 (March 31, 2022)
160
+ ======================
161
+ Bug-fix release in the 1.3.x series
162
+
163
+ * FIX: Use copy function that does not preserve mtime when creating fsaverage directories (#703)
164
+
159
165
1.3.6 (March 09, 2022)
160
166
======================
161
167
Bug-fix release in the 1.3.x series
Original file line number Diff line number Diff line change 24
24
from collections import defaultdict
25
25
from json import dumps , loads
26
26
from pathlib import Path
27
- from shutil import copytree , rmtree
27
+ import shutil
28
28
from pkg_resources import resource_filename as _pkgres
29
29
import re
30
30
@@ -913,10 +913,15 @@ def _run_interface(self, runtime):
913
913
914
914
# Finesse is overrated. Either leave it alone or completely clobber it.
915
915
if dest .exists () and self .inputs .overwrite_fsaverage :
916
- rmtree (dest )
916
+ shutil . rmtree (dest )
917
917
if not dest .exists ():
918
918
try :
919
- copytree (source , dest )
919
+ # Use copy instead of copy2; copy calls copymode while copy2 calls
920
+ # copystat, which will preserve atime/mtime.
921
+ # atime should *not* be copied to avoid triggering processes that
922
+ # sweep un-accessed files.
923
+ # If we want to preserve mtime, that will require a new copy function.
924
+ shutil .copytree (source , dest , copy_function = shutil .copy )
920
925
except FileExistsError :
921
926
LOGGER .warning (
922
927
"%s exists; if multiple jobs are running in parallel"
You can’t perform that action at this time.
0 commit comments