Skip to content

Commit 76ff3a5

Browse files
committed
Move directories correctly
It seems that this is the only way right now?
1 parent c9cac8c commit 76ff3a5

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

bin/Reportable.p6

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,9 @@ sub snapshot($msg?) {
109109
mkdir $temp-folder/RT;
110110
run maintenance/pull-rt, $temp-folder/RT, |$CONFIG<reportable><RT><user pass>;
111111

112-
rename $temp-folder, $dir.add: $datetime;
112+
# .move does not work with directories and .rename does not
113+
# work across devices, so just run ‘mv’
114+
run mv, --, $temp-folder, $dir.add: $datetime;
113115
True
114116
}
115117
}

0 commit comments

Comments
 (0)