forked from p15670423/monkey
agent, common, island: Move file util `expand_path` to `common/`
This commit is contained in:
parent
ded6ce0cd0
commit
d0a94e6223
|
@ -20,10 +20,6 @@ if is_windows_os():
|
||||||
import monkey_island.cc.server_utils.windows_permissions as windows_permissions
|
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):
|
def create_secure_directory(path: str):
|
||||||
if not os.path.isdir(path):
|
if not os.path.isdir(path):
|
||||||
if is_windows_os():
|
if is_windows_os():
|
||||||
|
|
Loading…
Reference in New Issue