File tree Expand file tree Collapse file tree 6 files changed +37
-37
lines changed
Expand file tree Collapse file tree 6 files changed +37
-37
lines changed Original file line number Diff line number Diff line change 2121 is_file ,
2222)
2323from fsutil .converters import convert_size_bytes_to_string , convert_size_string_to_bytes
24- from fsutil .core import (
25- clean_dir ,
26- copy_dir ,
27- copy_dir_content ,
28- copy_file ,
29- create_dir ,
30- create_file ,
31- delete_dir ,
32- delete_dir_content ,
33- delete_dirs ,
34- delete_file ,
35- delete_files ,
36- download_file ,
37- list_dirs ,
38- list_files ,
39- make_dirs ,
40- make_dirs_for_file ,
41- move_dir ,
42- move_file ,
43- remove_dir ,
44- remove_dir_content ,
45- remove_dirs ,
46- remove_file ,
47- remove_files ,
48- rename_dir ,
49- rename_file ,
50- rename_file_basename ,
51- rename_file_extension ,
52- replace_dir ,
53- replace_file ,
54- search_dirs ,
55- search_files ,
56- )
5724from fsutil .info import (
5825 get_dir_creation_date ,
5926 get_dir_creation_date_formatted ,
8855 __title__ ,
8956 __version__ ,
9057)
58+ from fsutil .operations import (
59+ clean_dir ,
60+ copy_dir ,
61+ copy_dir_content ,
62+ copy_file ,
63+ create_dir ,
64+ create_file ,
65+ delete_dir ,
66+ delete_dir_content ,
67+ delete_dirs ,
68+ delete_file ,
69+ delete_files ,
70+ download_file ,
71+ list_dirs ,
72+ list_files ,
73+ make_dirs ,
74+ make_dirs_for_file ,
75+ move_dir ,
76+ move_file ,
77+ remove_dir ,
78+ remove_dir_content ,
79+ remove_dirs ,
80+ remove_file ,
81+ remove_files ,
82+ rename_dir ,
83+ rename_file ,
84+ rename_file_basename ,
85+ rename_file_extension ,
86+ replace_dir ,
87+ replace_file ,
88+ search_dirs ,
89+ search_files ,
90+ )
9191from fsutil .paths import (
9292 get_file_basename ,
9393 get_file_extension ,
Original file line number Diff line number Diff line change 1717 is_dir ,
1818 is_file ,
1919)
20- from fsutil .core import make_dirs , make_dirs_for_file , remove_file
20+ from fsutil .operations import make_dirs , make_dirs_for_file , remove_file
2121from fsutil .paths import get_filename , join_path
2222from fsutil .types import PathIn
2323
Original file line number Diff line number Diff line change 77from fsutil .args import get_path as _get_path
88from fsutil .checks import assert_dir , assert_file
99from fsutil .converters import convert_size_bytes_to_string
10- from fsutil .core import search_files
10+ from fsutil .operations import search_files
1111from fsutil .types import PathIn
1212
1313
Original file line number Diff line number Diff line change 1010
1111from fsutil .args import get_path as _get_path
1212from fsutil .checks import assert_file , assert_not_dir , exists
13- from fsutil .core import make_dirs_for_file , remove_file
1413from fsutil .deps import require_requests
14+ from fsutil .operations import make_dirs_for_file , remove_file
1515from fsutil .paths import split_filepath
1616from fsutil .perms import get_permissions , set_permissions
1717from fsutil .types import PathIn
File renamed without changes.
Original file line number Diff line number Diff line change @@ -227,7 +227,7 @@ def test_download_file_multiple_to_temp_dir(temp_path):
227227
228228def test_download_file_without_requests_installed (temp_path ):
229229 url = "https://raw.githubusercontent.com/fabiocaccamo/python-fsutil/main/README.md"
230- with patch ("fsutil.core .require_requests" , side_effect = ModuleNotFoundError ()):
230+ with patch ("fsutil.operations .require_requests" , side_effect = ModuleNotFoundError ()):
231231 with pytest .raises (ModuleNotFoundError ):
232232 fsutil .download_file (url , dirpath = temp_path ())
233233
You can’t perform that action at this time.
0 commit comments