Skip to content

Commit

Permalink
don't move files which are already in the right place
Browse files Browse the repository at this point in the history
  • Loading branch information
etorreborre committed Sep 4, 2014
1 parent bf71185 commit e956c7e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/scala/com/nicta/scoobi/impl/io/Files.scala
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ trait Files {
if (!pathExists(destPath.getParent)) to.mkdirs(destPath.getParent)

if (sameFileSystem(from, to))
(path == destPath) || {
path.toUri.getPath.startsWith(destPath.toUri.getPath) || {
logger.debug(s"renaming $path to $destPath")
tryOk {
Compatibility.rename(path, destPath)
Expand Down

0 comments on commit e956c7e

Please sign in to comment.