From d0a94e6223cebbb6ae780489e01233aad0d05448 Mon Sep 17 00:00:00 2001 From: Shreya Date: Tue, 6 Jul 2021 19:38:10 +0530 Subject: [PATCH] agent, common, island: Move file util `expand_path` to `common/` --- monkey/{infection_monkey => common}/utils/file_utils.py | 0 monkey/monkey_island/cc/server_utils/file_utils.py | 4 ---- 2 files changed, 4 deletions(-) rename monkey/{infection_monkey => common}/utils/file_utils.py (100%) diff --git a/monkey/infection_monkey/utils/file_utils.py b/monkey/common/utils/file_utils.py similarity index 100% rename from monkey/infection_monkey/utils/file_utils.py rename to monkey/common/utils/file_utils.py diff --git a/monkey/monkey_island/cc/server_utils/file_utils.py b/monkey/monkey_island/cc/server_utils/file_utils.py index e429eb464..9013cd5f8 100644 --- a/monkey/monkey_island/cc/server_utils/file_utils.py +++ b/monkey/monkey_island/cc/server_utils/file_utils.py @@ -20,10 +20,6 @@ if is_windows_os(): import monkey_island.cc.server_utils.windows_permissions as windows_permissions -def expand_path(path: str) -> str: - return os.path.expandvars(os.path.expanduser(path)) - - def create_secure_directory(path: str): if not os.path.isdir(path): if is_windows_os():