From 958c410ba8b621a8a4d8caf04012028e7f151e0f Mon Sep 17 00:00:00 2001 From: Charles Cabergs Date: Fri, 11 Sep 2020 22:20:15 +0200 Subject: Added comments --- src/sandbox.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/sandbox.py') diff --git a/src/sandbox.py b/src/sandbox.py index 418243e..efad60c 100644 --- a/src/sandbox.py +++ b/src/sandbox.py @@ -6,7 +6,7 @@ # By: charles +#+ +:+ +#+ # # +#+#+#+#+#+ +#+ # # Created: 2020/09/11 13:48:07 by charles #+# #+# # -# Updated: 2020/09/11 19:53:13 by charles ### ########.fr # +# Updated: 2020/09/11 20:25:38 by charles ### ########.fr # # # # ############################################################################ # @@ -19,6 +19,7 @@ import config def create(): + """Create a new sandbox directory""" try: os.mkdir(config.SANDBOX_PATH) except OSError: @@ -26,6 +27,9 @@ def create(): def remove(): + """Remove the sandbox directory + Brute force rm -rf if clean removal doesn't work due to permissions. + """ try: shutil.rmtree(config.SANDBOX_PATH) except PermissionError: -- cgit