atomicshop 2.14.13__py3-none-any.whl → 2.14.14__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of atomicshop might be problematic. Click here for more details.
- atomicshop/__init__.py +1 -1
- atomicshop/filesystem.py +11 -0
- atomicshop/wrappers/loggingw/reading.py +2 -3
- {atomicshop-2.14.13.dist-info → atomicshop-2.14.14.dist-info}/METADATA +1 -1
- {atomicshop-2.14.13.dist-info → atomicshop-2.14.14.dist-info}/RECORD +8 -8
- {atomicshop-2.14.13.dist-info → atomicshop-2.14.14.dist-info}/LICENSE.txt +0 -0
- {atomicshop-2.14.13.dist-info → atomicshop-2.14.14.dist-info}/WHEEL +0 -0
- {atomicshop-2.14.13.dist-info → atomicshop-2.14.14.dist-info}/top_level.txt +0 -0
atomicshop/__init__.py
CHANGED
atomicshop/filesystem.py
CHANGED
|
@@ -465,6 +465,17 @@ def move_folder(source_directory: str, target_directory: str, overwrite: bool =
|
|
|
465
465
|
:param overwrite: boolean, if 'False', then the function will not overwrite the directory if it exists.
|
|
466
466
|
|
|
467
467
|
:return: None
|
|
468
|
+
|
|
469
|
+
------------------------------
|
|
470
|
+
|
|
471
|
+
Example:
|
|
472
|
+
source_directory = 'C:/Users/user1/Downloads/folder-to-move'
|
|
473
|
+
target_directory = 'C:/Users/user1/Documents'
|
|
474
|
+
move_folder(source_directory, target_directory)
|
|
475
|
+
|
|
476
|
+
Result path of the 'folder-to-move' will be:
|
|
477
|
+
'C:/Users/user1/Documents/folder-to-move'
|
|
478
|
+
|
|
468
479
|
"""
|
|
469
480
|
|
|
470
481
|
# Check if 'overwrite' is set to 'True' and if the directory exists.
|
|
@@ -92,13 +92,13 @@ def get_logs_paths(
|
|
|
92
92
|
logs_files[file_index]['datetime'] = datetime_object
|
|
93
93
|
logs_files[file_index]['date_string'] = date_string
|
|
94
94
|
|
|
95
|
-
if timestamp_float > latest_timestamp:
|
|
95
|
+
if timestamp_float and timestamp_float > latest_timestamp:
|
|
96
96
|
latest_timestamp = timestamp_float
|
|
97
97
|
|
|
98
98
|
# Now, there should be a file that doesn't have the string date pattern in the file name.
|
|
99
99
|
# We will add one day to the latest date that we found and assign to that file path.
|
|
100
100
|
for file_index, single_file in enumerate(logs_files):
|
|
101
|
-
if single_file['last_modified']
|
|
101
|
+
if single_file['last_modified'] is None:
|
|
102
102
|
latest_timestamp += 86400
|
|
103
103
|
logs_files[file_index]['last_modified'] = latest_timestamp
|
|
104
104
|
logs_files[file_index]['datetime'] = datetime.datetime.fromtimestamp(latest_timestamp)
|
|
@@ -122,7 +122,6 @@ def get_logs_paths(
|
|
|
122
122
|
elif len(logs_files) == 1 and previous_day_only:
|
|
123
123
|
logs_files = []
|
|
124
124
|
|
|
125
|
-
|
|
126
125
|
return logs_files
|
|
127
126
|
|
|
128
127
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
atomicshop/__init__.py,sha256=
|
|
1
|
+
atomicshop/__init__.py,sha256=U_puqMerMK4pch7eXDpGxyvJxHra5X7FFCvSLPeMSUQ,124
|
|
2
2
|
atomicshop/_basics_temp.py,sha256=6cu2dd6r2dLrd1BRNcVDKTHlsHs_26Gpw8QS6v32lQ0,3699
|
|
3
3
|
atomicshop/_create_pdf_demo.py,sha256=Yi-PGZuMg0RKvQmLqVeLIZYadqEZwUm-4A9JxBl_vYA,3713
|
|
4
4
|
atomicshop/_patch_import.py,sha256=ENp55sKVJ0e6-4lBvZnpz9PQCt3Otbur7F6aXDlyje4,6334
|
|
@@ -14,7 +14,7 @@ atomicshop/dns.py,sha256=h4uZKoz4wbBlLOOduL1GtRcTm-YpiPnGOEGxUm7hhOI,2140
|
|
|
14
14
|
atomicshop/domains.py,sha256=Rxu6JhhMqFZRcoFs69IoEd1PtYca0lMCG6F1AomP7z4,3197
|
|
15
15
|
atomicshop/emails.py,sha256=I0KyODQpIMEsNRi9YWSOL8EUPBiWyon3HRdIuSj3AEU,1410
|
|
16
16
|
atomicshop/file_types.py,sha256=-0jzQMRlmU1AP9DARjk-HJm1tVE22E6ngP2mRblyEjY,763
|
|
17
|
-
atomicshop/filesystem.py,sha256=
|
|
17
|
+
atomicshop/filesystem.py,sha256=aTnO1bcRiNWwkD787pKPi7ze-H95cV8YTc2WmLxcSk4,54539
|
|
18
18
|
atomicshop/functions.py,sha256=pK8hoCE9z61PtWCxQJsda7YAphrLH1wxU5x-1QJP-sY,499
|
|
19
19
|
atomicshop/get_process_list.py,sha256=hi1NOG-i8S6EcyQ6LTfP4pdxqRfjEijz9SZ5nEbcM9Q,6076
|
|
20
20
|
atomicshop/get_process_name_cmd_dll.py,sha256=CtaSp3mgxxJKCCVW8BLx6BJNx4giCklU_T7USiCEwfc,5162
|
|
@@ -243,7 +243,7 @@ atomicshop/wrappers/loggingw/formatters.py,sha256=7XUJvlB0CK4DCkEp8NTL0S0dkyrZD0
|
|
|
243
243
|
atomicshop/wrappers/loggingw/handlers.py,sha256=yFYBeTkxnpmtlauoH3ZEFEHUYQYu9YL-ycd9sYTvOl4,16928
|
|
244
244
|
atomicshop/wrappers/loggingw/loggers.py,sha256=DHOOTAtqkwn1xgvLHSkOiBm6yFGNuQy1kvbhG-TDog8,2374
|
|
245
245
|
atomicshop/wrappers/loggingw/loggingw.py,sha256=lo4OZPXCbYZi3GqpaaJSs9SOGFfqD2EgHzzTK7f5IR4,11275
|
|
246
|
-
atomicshop/wrappers/loggingw/reading.py,sha256=
|
|
246
|
+
atomicshop/wrappers/loggingw/reading.py,sha256=b4-ibM5WwjEOanvHY3hIsu9-4b2RAdPYiCxvl7745fk,17521
|
|
247
247
|
atomicshop/wrappers/nodejsw/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
248
248
|
atomicshop/wrappers/nodejsw/install_nodejs.py,sha256=QZg-R2iTQt7kFb8wNtnTmwraSGwvUs34JIasdbNa7ZU,5154
|
|
249
249
|
atomicshop/wrappers/playwrightw/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
@@ -288,8 +288,8 @@ atomicshop/wrappers/socketw/socket_server_tester.py,sha256=AhpurHJmP2kgzHaUbq5ey
|
|
|
288
288
|
atomicshop/wrappers/socketw/socket_wrapper.py,sha256=aXBwlEIJhFT0-c4i8iNlFx2It9VpCEpsv--5Oqcpxao,11624
|
|
289
289
|
atomicshop/wrappers/socketw/ssl_base.py,sha256=k4V3gwkbq10MvOH4btU4onLX2GNOsSfUAdcHmL1rpVE,2274
|
|
290
290
|
atomicshop/wrappers/socketw/statistics_csv.py,sha256=t3dtDEfN47CfYVi0CW6Kc2QHTEeZVyYhc57IYYh5nmA,826
|
|
291
|
-
atomicshop-2.14.
|
|
292
|
-
atomicshop-2.14.
|
|
293
|
-
atomicshop-2.14.
|
|
294
|
-
atomicshop-2.14.
|
|
295
|
-
atomicshop-2.14.
|
|
291
|
+
atomicshop-2.14.14.dist-info/LICENSE.txt,sha256=lLU7EYycfYcK2NR_1gfnhnRC8b8ccOTElACYplgZN88,1094
|
|
292
|
+
atomicshop-2.14.14.dist-info/METADATA,sha256=9F0J0JZEwuLAVo78ASBM9KOu4CHZdXEXJ9l8b57buzw,10479
|
|
293
|
+
atomicshop-2.14.14.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
|
|
294
|
+
atomicshop-2.14.14.dist-info/top_level.txt,sha256=EgKJB-7xcrAPeqTRF2laD_Np2gNGYkJkd4OyXqpJphA,11
|
|
295
|
+
atomicshop-2.14.14.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|