LIB: don't allow same source and dest in copyDir
This commit is contained in:
parent
58665d7b29
commit
9fbe43e7d5
@ -116,6 +116,7 @@ copyDir cm from@(Dir fn _ _, _) to@(Dir {}, _) = do
|
||||
dirSanityThrow fromp
|
||||
dirSanityThrow top
|
||||
throwDestinationInSource fromp top
|
||||
throwSameFile fromp destdir
|
||||
|
||||
createDestdir destdir
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user