diff --git a/src/filepass/__init__.py b/src/filepass/__init__.py index 77d4730..4e56e27 100644 --- a/src/filepass/__init__.py +++ b/src/filepass/__init__.py @@ -1,10 +1,4 @@ -from .filepass import ( - file_pass, - local_connection, - osfs_connection, - sftp_connection, - smb_connection, -) +from .filepass import file_pass, osfs_connection, sftp_connection, smb_connection from .filepass_config import ConnectionDetails __all__ = [ diff --git a/src/filepass/filepass.py b/src/filepass/filepass.py index 449f5b8..bdb1daf 100644 --- a/src/filepass/filepass.py +++ b/src/filepass/filepass.py @@ -52,15 +52,8 @@ def smb_connection(logger, conn_details: ConnectionDetails): return fs_conn -def local_connection(logger, conn_details: ConnectionDetails): - """Establishes a connection to a directory on the local filesystem""" - logger.debug("local connection to {}".format(conn_details.dir)) - fs_conn = fs.open_fs("{}".format(conn_details.dir)) - return fs_conn - - def osfs_connection(logger, conn_details: ConnectionDetails): - logger.debug("osfs dir: {}".format(conn_details.dir)) + logger.debug("osfs/local connection to dir: {}".format(conn_details.dir)) fs_conn = fs.open_fs(conn_details.dir) return fs_conn @@ -83,7 +76,7 @@ def file_pass( connection_functions = { "sftp": sftp_connection, "smb": smb_connection, - "local": local_connection, + "local": osfs_connection, "osfs": osfs_connection, }