diff --git a/pym/calculate/lib/utils/files.py b/pym/calculate/lib/utils/files.py index 64911f1..5677355 100644 --- a/pym/calculate/lib/utils/files.py +++ b/pym/calculate/lib/utils/files.py @@ -1083,6 +1083,14 @@ def find(directory,onefilesystem=False,filetype=None, if _downfilter and not _downfilter(dp): directories.remove(dn) +def isEmpty(dn): + """ + Проверить пустая ли директория + :param dn: директория + :return: + """ + return not listDirectory(dn) + def copyWithPath(fn,dest,prefix=None): """ Копировать файл в dst с созданием каталогов