wcp-library 1.1.4__py3-none-any.whl → 1.1.5__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.
wcp_library/ftp/ftp.py CHANGED
@@ -44,6 +44,8 @@ class FTP:
44
44
  :return:
45
45
  """
46
46
 
47
+ local_file.parent.mkdir(parents=True, exist_ok=True)
48
+
47
49
  logger.debug(f"Downloading {remote_file} to {local_file}")
48
50
  self.ftp_connection.download(remote_file, local_file)
49
51
 
@@ -56,6 +58,8 @@ class FTP:
56
58
  :return:
57
59
  """
58
60
 
61
+ local_dir.mkdir(parents=True, exist_ok=True)
62
+
59
63
  logger.debug(f"Downloading files from FTP server matching {regex_pattern} to {local_dir}")
60
64
  files = self.list_files()
61
65
  for file in files:
wcp_library/ftp/sftp.py CHANGED
@@ -48,6 +48,8 @@ class SFTP:
48
48
  :return:
49
49
  """
50
50
 
51
+ local_file.parent.mkdir(parents=True, exist_ok=True)
52
+
51
53
  logger.debug(f"Downloading {remote_file} to {local_file}")
52
54
  self.sftp_connection.get(str(remote_file), local_file)
53
55
 
@@ -60,6 +62,8 @@ class SFTP:
60
62
  :return:
61
63
  """
62
64
 
65
+ local_dir.mkdir(parents=True, exist_ok=True)
66
+
63
67
  logger.debug(f"Downloading files from FTP server matching {regex_pattern} to {local_dir}")
64
68
  files = self.list_files()
65
69
  for file in files:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: wcp-library
3
- Version: 1.1.4
3
+ Version: 1.1.5
4
4
  Summary: Common utilites for internal development at WCP
5
5
  Home-page: https://github.com/Whitecap-DNA/WCP-Library
6
6
  Author: Mitch-Petersen
@@ -12,13 +12,13 @@ wcp_library/credentials/oracle.py,sha256=IJVGd10LH5LUNKUSFAbApi0sjR1AbloMJRHTuR9
12
12
  wcp_library/credentials/postgres.py,sha256=psOPIAr6rBxce47hIHBJxgBAdsAEufjsUKZD0JRnZwI,4956
13
13
  wcp_library/emailing.py,sha256=xqNly6Tmj-pvwl5bdys3gauZFDd4SuWCQYzGFNemv2Q,2496
14
14
  wcp_library/ftp/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
15
- wcp_library/ftp/ftp.py,sha256=0Cv_7iKMrYfqMnax9_8rJ12yiGN117ktwsi1HUNqLd8,4234
16
- wcp_library/ftp/sftp.py,sha256=jiTT6GreJd20ZGk7o4hbeuQ8ZDjT66zLnyPwCXMQPVA,4060
15
+ wcp_library/ftp/ftp.py,sha256=EpyW0J2QIGxP8zVGD4VarA0hi4C2XAPDPF-0j2sRdpI,4350
16
+ wcp_library/ftp/sftp.py,sha256=hykXGLGdxe7DYAxFdTwjPjTEOYuIpSMyK3NOiTQNUK0,4176
17
17
  wcp_library/informatica.py,sha256=IXZtk_9X1XLbOEwFrsyOwTgajQKvtXgANBHmuTOP3Kk,4064
18
18
  wcp_library/logging.py,sha256=cFaY7kHEV1DukNiIVIsckrS046vBQ3W9sbFDfP1tcPk,2056
19
19
  wcp_library/sql/__init__.py,sha256=CLlBEBrWVAwE79bUxuQiwikSrYH8m9QRYSJ2l0-ofsY,1003
20
20
  wcp_library/sql/oracle.py,sha256=FeMvqLte26vNQlR1esdZAUICy9IqOuE0zTTrx245bhY,7283
21
21
  wcp_library/sql/postgres.py,sha256=I2iDQ13z_hbEfpFBliozLfsg8xUdSzEVqr12yyPSdh4,6489
22
- wcp_library-1.1.4.dist-info/METADATA,sha256=9aJ0DZUi3vdwNuB_CZCbO3RpTL51K-Db5GzZAFliMd0,1421
23
- wcp_library-1.1.4.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
24
- wcp_library-1.1.4.dist-info/RECORD,,
22
+ wcp_library-1.1.5.dist-info/METADATA,sha256=iTlE-LPCj5ABMCWcNnlUg9RXnAJ6il0Aw7yjsVbHTbM,1421
23
+ wcp_library-1.1.5.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
24
+ wcp_library-1.1.5.dist-info/RECORD,,