wcp-library 1.1.4__tar.gz → 1.1.5__tar.gz
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-1.1.4 → wcp_library-1.1.5}/PKG-INFO +1 -1
- {wcp_library-1.1.4 → wcp_library-1.1.5}/pyproject.toml +1 -1
- {wcp_library-1.1.4 → wcp_library-1.1.5}/wcp_library/ftp/ftp.py +4 -0
- {wcp_library-1.1.4 → wcp_library-1.1.5}/wcp_library/ftp/sftp.py +4 -0
- {wcp_library-1.1.4 → wcp_library-1.1.5}/README.md +0 -0
- {wcp_library-1.1.4 → wcp_library-1.1.5}/wcp_library/__init__.py +0 -0
- {wcp_library-1.1.4 → wcp_library-1.1.5}/wcp_library/async_credentials/__init__.py +0 -0
- {wcp_library-1.1.4 → wcp_library-1.1.5}/wcp_library/async_credentials/api.py +0 -0
- {wcp_library-1.1.4 → wcp_library-1.1.5}/wcp_library/async_credentials/oracle.py +0 -0
- {wcp_library-1.1.4 → wcp_library-1.1.5}/wcp_library/async_credentials/postgres.py +0 -0
- {wcp_library-1.1.4 → wcp_library-1.1.5}/wcp_library/async_sql/__init__.py +0 -0
- {wcp_library-1.1.4 → wcp_library-1.1.5}/wcp_library/async_sql/oracle.py +0 -0
- {wcp_library-1.1.4 → wcp_library-1.1.5}/wcp_library/async_sql/postgres.py +0 -0
- {wcp_library-1.1.4 → wcp_library-1.1.5}/wcp_library/credentials/__init__.py +0 -0
- {wcp_library-1.1.4 → wcp_library-1.1.5}/wcp_library/credentials/ftp.py +0 -0
- {wcp_library-1.1.4 → wcp_library-1.1.5}/wcp_library/credentials/oracle.py +0 -0
- {wcp_library-1.1.4 → wcp_library-1.1.5}/wcp_library/credentials/postgres.py +0 -0
- {wcp_library-1.1.4 → wcp_library-1.1.5}/wcp_library/emailing.py +0 -0
- {wcp_library-1.1.4 → wcp_library-1.1.5}/wcp_library/ftp/__init__.py +0 -0
- {wcp_library-1.1.4 → wcp_library-1.1.5}/wcp_library/informatica.py +0 -0
- {wcp_library-1.1.4 → wcp_library-1.1.5}/wcp_library/logging.py +0 -0
- {wcp_library-1.1.4 → wcp_library-1.1.5}/wcp_library/sql/__init__.py +0 -0
- {wcp_library-1.1.4 → wcp_library-1.1.5}/wcp_library/sql/oracle.py +0 -0
- {wcp_library-1.1.4 → wcp_library-1.1.5}/wcp_library/sql/postgres.py +0 -0
@@ -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:
|
@@ -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:
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|