LIB: don't allow same source and dest in copyDir

This commit is contained in:
2015-12-18 17:00:44 +01:00
parent 58665d7b29
commit 9fbe43e7d5

View File

@@ -116,6 +116,7 @@ copyDir cm from@(Dir fn _ _, _) to@(Dir {}, _) = do
dirSanityThrow fromp
dirSanityThrow top
throwDestinationInSource fromp top
throwSameFile fromp destdir
createDestdir destdir