forked from p15670423/monkey
Island: Add get_file_contents() to file utils
This commit is contained in:
parent
dc4749da63
commit
cb79708fda
|
@ -21,6 +21,12 @@ if is_windows_os():
|
|||
import monkey_island.cc.server_utils.windows_permissions as windows_permissions
|
||||
|
||||
|
||||
def get_file_contents(file_path: Path) -> str:
|
||||
with open(file_path, "rt") as f:
|
||||
file_contents = f.read()
|
||||
return file_contents
|
||||
|
||||
|
||||
def create_secure_directory(path: Path):
|
||||
if not path.is_dir():
|
||||
if is_windows_os():
|
||||
|
|
Loading…
Reference in New Issue