1
0
mirror of https://github.com/arsenetar/dupeguru.git synced 2026-01-22 14:41:39 +00:00

Fixed copying operations for folders which didn't work.

This commit is contained in:
Virgil Dupras
2011-04-14 12:55:50 +02:00
parent d887cd118c
commit 0b20b35ffb
3 changed files with 12 additions and 9 deletions

View File

@@ -192,6 +192,10 @@ class Folder(File):
self._subfolders = [Folder(p) for p in subfolders]
return self._subfolders
@classmethod
def can_handle(cls, path):
return not io.islink(path) and io.isdir(path)
def get_file(path, fileclasses=[File]):
for fileclass in fileclasses: