|
6 | 6 | from library.createdb import av |
7 | 7 | from library.files import sample_hash |
8 | 8 | from library.mediafiles import process_ffmpeg, process_image |
9 | | -from library.utils import consts, file_utils, iterables, nums, objects, processes, strings |
| 9 | +from library.utils import consts, file_utils, iterables, nums, objects, processes, shell_utils, strings |
10 | 10 | from library.utils.consts import DBType |
11 | 11 | from library.utils.log_utils import log |
12 | 12 |
|
@@ -110,10 +110,10 @@ def extract_metadata(mp_args, path) -> dict[str, str | int | None] | None: |
110 | 110 | m["hash"] = sample_hash.sample_hash_file(path) |
111 | 111 |
|
112 | 112 | if getattr(mp_args, "copy", False) and not file_utils.is_file_open(path): |
113 | | - path = m["path"] = file_utils.copy(mp_args, path, mp_args.copy) |
| 113 | + path = m["path"] = shell_utils.copy(mp_args, path, mp_args.copy) |
114 | 114 |
|
115 | 115 | if getattr(mp_args, "move", False) and not file_utils.is_file_open(path): |
116 | | - path = m["path"] = file_utils.rel_move(mp_args, path, mp_args.move) |
| 116 | + path = m["path"] = shell_utils.rel_move(mp_args, path, mp_args.move) |
117 | 117 |
|
118 | 118 | if getattr(mp_args, "process", False): |
119 | 119 | if objects.is_profile(mp_args, DBType.audio) and Path(path).suffix not in [".opus", ".mka"]: |
|
0 commit comments