atomicshop 2.16.24__py3-none-any.whl → 2.16.25__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 CHANGED
@@ -1,4 +1,4 @@
1
1
  """Atomic Basic functions and classes to make developer life easier"""
2
2
 
3
3
  __author__ = "Den Kras"
4
- __version__ = '2.16.24'
4
+ __version__ = '2.16.25'
atomicshop/filesystem.py CHANGED
@@ -338,18 +338,20 @@ def create_directory(directory_fullpath: str):
338
338
  pathlib.Path(directory_fullpath).mkdir(parents=True, exist_ok=True)
339
339
 
340
340
 
341
- def rename_file(source_file_path: str, target_file_path: str) -> None:
341
+ def rename_file(file_path: str, new_file_name: str) -> None:
342
342
  """
343
343
  The function renames file from source to target.
344
344
 
345
- :param source_file_path: string, full path to source file.
346
- :param target_file_path: string, full path to target file.
345
+ :param file_path: string, full path to file that will be renamed.
346
+ :param new_file_name: string, new name of the file. No path should be included.
347
347
 
348
348
  :return: None
349
349
  """
350
350
 
351
+ renamed_file_path = str(Path(file_path).parent) + os.sep + new_file_name
352
+
351
353
  # Rename file.
352
- os.rename(source_file_path, target_file_path)
354
+ os.rename(file_path, renamed_file_path)
353
355
 
354
356
 
355
357
  @contextmanager
@@ -1569,7 +1571,7 @@ def backup_file(
1569
1571
  else:
1570
1572
  file_name: str = f"{file_name_no_extension}_{timestamp}{file_extension}"
1571
1573
  backup_file_path: str = str(Path(backup_directory) / file_name)
1572
- move_file(file_path, backup_directory)
1574
+ rename_file(file_path, file_name)
1573
1575
 
1574
1576
  return backup_file_path
1575
1577
  else:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: atomicshop
3
- Version: 2.16.24
3
+ Version: 2.16.25
4
4
  Summary: Atomic functions and classes to make developer life easier
5
5
  Author: Denis Kras
6
6
  License: MIT License
@@ -1,4 +1,4 @@
1
- atomicshop/__init__.py,sha256=CTmlCQGjYSV8TXiXGaZZB1S8I3hG61RNpEbQc104SF8,124
1
+ atomicshop/__init__.py,sha256=pTUwA9Doe40KLzzXkZWZrr_xInKxBNkTkjXbxjBfS_A,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=J4yX6vCaRdL0McYWnlJ9arCDKW-yRui7Y5WyL5BoD6M,6391
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=XPrOjqxQRP3fa01QztDvuDUpiFjCYtpPUC0KhaGHxqs,60222
17
+ atomicshop/filesystem.py,sha256=ZDRRikFSUMleaUQJqxJGI5oVVH3H5qa2zeDVkZqghUE,60309
18
18
  atomicshop/functions.py,sha256=pK8hoCE9z61PtWCxQJsda7YAphrLH1wxU5x-1QJP-sY,499
19
19
  atomicshop/get_process_list.py,sha256=8cxb7gKe9sl4R6H2yMi8J6oe-RkonTvCdKjRFqi-Fs4,6075
20
20
  atomicshop/get_process_name_cmd_dll.py,sha256=CtaSp3mgxxJKCCVW8BLx6BJNx4giCklU_T7USiCEwfc,5162
@@ -309,8 +309,8 @@ atomicshop/wrappers/socketw/ssl_base.py,sha256=kmiif84kMhBr5yjQW17p935sfjR5JKG0L
309
309
  atomicshop/wrappers/socketw/statistics_csv.py,sha256=V_m1D0KpizQox3IEWp2AUcncwWy5kG25hbFrc-mBSJE,3029
310
310
  atomicshop/wrappers/winregw/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
311
311
  atomicshop/wrappers/winregw/winreg_network.py,sha256=bQ8Jql8bVGBJ0dt3VQ56lga_1LBOMLI3Km_otvvbU6c,7138
312
- atomicshop-2.16.24.dist-info/LICENSE.txt,sha256=lLU7EYycfYcK2NR_1gfnhnRC8b8ccOTElACYplgZN88,1094
313
- atomicshop-2.16.24.dist-info/METADATA,sha256=172BnmXPSDlG-AxPVViiY5xQNY2m7UqFq6DQ0ytD9zM,10473
314
- atomicshop-2.16.24.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
315
- atomicshop-2.16.24.dist-info/top_level.txt,sha256=EgKJB-7xcrAPeqTRF2laD_Np2gNGYkJkd4OyXqpJphA,11
316
- atomicshop-2.16.24.dist-info/RECORD,,
312
+ atomicshop-2.16.25.dist-info/LICENSE.txt,sha256=lLU7EYycfYcK2NR_1gfnhnRC8b8ccOTElACYplgZN88,1094
313
+ atomicshop-2.16.25.dist-info/METADATA,sha256=z4GJ2-D1uAfF0ltaaiRvnPTbFz9vyac3kJGHf9fNH7U,10473
314
+ atomicshop-2.16.25.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
315
+ atomicshop-2.16.25.dist-info/top_level.txt,sha256=EgKJB-7xcrAPeqTRF2laD_Np2gNGYkJkd4OyXqpJphA,11
316
+ atomicshop-2.16.25.dist-info/RECORD,,