cleanup
This commit is contained in:
@@ -119,14 +119,16 @@ def get_current_path(path) -> str:
|
|||||||
"""
|
"""
|
||||||
logger.debug(f"FUNC: get_current_path() MSG: entered function with path = '{path}'")
|
logger.debug(f"FUNC: get_current_path() MSG: entered function with path = '{path}'")
|
||||||
if path is None:
|
if path is None:
|
||||||
|
|
||||||
|
# Set the current directory if none is passed with the command.
|
||||||
path = "."
|
path = "."
|
||||||
logger.debug(
|
logger.warning(
|
||||||
f"FUNC: {get_current_path.__name__} MSG: Path now has the value: '{path}'"
|
f"FUNC: {get_current_path.__name__}() MSG: Path now has the value: '{path}'"
|
||||||
)
|
)
|
||||||
return path
|
return path
|
||||||
else:
|
else:
|
||||||
# Here the check for the path to exist takes place
|
|
||||||
|
# Checks if the path, entered by the user, exists.
|
||||||
if os.path.exists(path) is True:
|
if os.path.exists(path) is True:
|
||||||
logger.debug(
|
logger.debug(
|
||||||
f"FUNC: {get_current_path.__name__} MSG: Path '{path}' exists, continue...."
|
f"FUNC: {get_current_path.__name__} MSG: Path '{path}' exists, continue...."
|
||||||
|
|||||||
Reference in New Issue
Block a user