]> Sergey Matveev's repositories - torn.git/blobdiff - torn
Do not try to rename folders
[torn.git] / torn
diff --git a/torn b/torn
index 2fe88def679854e774c3a5b9f1d3e1fdd4f19af2..55822266cbd0bab69bd39f2b8b5d7c28ef7b4bb7 100755 (executable)
--- a/torn
+++ b/torn
@@ -76,6 +76,7 @@ opendir DIR, "." or die "Can not open directory\n";
 foreach (sort readdir DIR) {
     # Skip directory itself
     next if /^\.{1,2}$/;
+    next if -d;
 
     $src_filename = $_;
     $src = decode "utf-8", $src_filename;