From 52af0d3382d20ca0abb2325d3d87b22a66bce4b4 Mon Sep 17 00:00:00 2001 From: Ben Clifford Date: Fri, 8 Nov 2024 10:07:30 +0000 Subject: [PATCH] Remove unused channel directory handling code This is part of implementing #3515 channel removal code. These methods became unused in PR #3688. --- parsl/channels/base.py | 28 ---------------------------- parsl/channels/local/local.py | 28 ---------------------------- 2 files changed, 56 deletions(-) diff --git a/parsl/channels/base.py b/parsl/channels/base.py index e8acfc1088..ee0097f0d0 100644 --- a/parsl/channels/base.py +++ b/parsl/channels/base.py @@ -80,31 +80,3 @@ def pull_file(self, remote_source: str, local_dir: str) -> str: destination_path (string) ''' pass - - @abstractmethod - def makedirs(self, path: str, mode: int = 0o511, exist_ok: bool = False) -> None: - """Create a directory. - - If intermediate directories do not exist, they will be created. - - Parameters - ---------- - path : str - Path of directory to create. - mode : int - Permissions (posix-style) for the newly-created directory. - exist_ok : bool - If False, raise an OSError if the target directory already exists. - """ - pass - - @abstractmethod - def isdir(self, path: str) -> bool: - """Return true if the path refers to an existing directory. - - Parameters - ---------- - path : str - Path of directory to check. - """ - pass diff --git a/parsl/channels/local/local.py b/parsl/channels/local/local.py index 40b7eac34f..1d7a15dfdf 100644 --- a/parsl/channels/local/local.py +++ b/parsl/channels/local/local.py @@ -91,34 +91,6 @@ def push_file(self, source, dest_dir): def pull_file(self, remote_source, local_dir): return self.push_file(remote_source, local_dir) - def isdir(self, path): - """Return true if the path refers to an existing directory. - - Parameters - ---------- - path : str - Path of directory to check. - """ - - return os.path.isdir(path) - - def makedirs(self, path, mode=0o700, exist_ok=False): - """Create a directory. - - If intermediate directories do not exist, they will be created. - - Parameters - ---------- - path : str - Path of directory to create. - mode : int - Permissions (posix-style) for the newly-created directory. - exist_ok : bool - If False, raise an OSError if the target directory already exists. - """ - - return os.makedirs(path, mode, exist_ok) - @property def script_dir(self): return self._script_dir