[golemfactory/golem] Moving ls_r function (analogue of `ls -r`) to dirmanager (#3074)

inexxt commented on this pull request.

> @@ -55,6 +55,14 @@ def find_task_script(task_dir, script_name):
logger.error(«Script file {} does not exist!».format(script_file))

+def ls_r(dir):
+ files = []
+ for dirpath, dirnames, filenames in os.walk(dir, followlinks=True):
+ for name in filenames:
+ files.append(os.path.join(dirpath, name))

Fixed

Добавить комментарий