diff options
author | davidovski <david@davidovski.xyz> | 2022-02-13 23:22:33 +0000 |
---|---|---|
committer | davidovski <david@davidovski.xyz> | 2022-02-13 23:22:33 +0000 |
commit | 9f529b0e85c7b38e97d8ebb0371f7a6859f882f4 (patch) | |
tree | 8de89a716bce066a5497b8263a00d9c007425e85 /src/verbs/files.py | |
parent | f545930c0535293a37f5c1730d8b83264cf098b5 (diff) |
started rewrite with xisync
Diffstat (limited to 'src/verbs/files.py')
-rw-r--r-- | src/verbs/files.py | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/src/verbs/files.py b/src/verbs/files.py deleted file mode 100644 index 33936a9..0000000 --- a/src/verbs/files.py +++ /dev/null @@ -1,32 +0,0 @@ -import os -import colors -import util -import shutil - -import re - -from verbs.sync import sync -from verbs.search import list_repos -from verbs.file import condition_file - -def list_files(package_name, config, root="/"): - file_list = util.add_path(root, config["dir"]["installed"], package_name, "files") - if os.path.exists(file_list): - with open(file_list, "r") as file: - return [condition_file(line.strip()) for line in file] - else: - return [] - -def list_all_files(config, root="/"): - packages = [ p.split("/")[-1] for p in list_repos(config["repos"], config["dir"]["packages"], config["dir"]["sources"])] - file_list = {} - for package in packages: - file_list[package] = list_files(package, config, root=root) - return file_list - -def files(args, options, config): - if len(args) > 0: - [print(f) for f in list_files(args[0], config, options["r"])] - - else: - print(colors.LIGHT_RED + "Nothing to do") |