added TODO comments
This commit is contained in:
@@ -3,6 +3,9 @@ import sys
|
||||
|
||||
from .refit_logger import logger
|
||||
|
||||
# TODO: Make a standard function for reading config files, so it is
|
||||
# reusable
|
||||
|
||||
|
||||
def get_standard_name_number(current_number: str, number_str_length: int) -> str:
|
||||
"""Returns a number string filled to the length of the input number
|
||||
@@ -117,9 +120,16 @@ def get_current_path(path) -> str:
|
||||
Returns:
|
||||
str: _Returns the path of the current directory after check for existence_
|
||||
"""
|
||||
|
||||
# TODO: write test for the current path function, test for:
|
||||
# - None
|
||||
# - for existing path
|
||||
# - for non existing path
|
||||
|
||||
# NOTE: research how to check for paths in test functions...
|
||||
|
||||
logger.debug(f"FUNC: get_current_path() MSG: entered function with path = '{path}'")
|
||||
if path is None:
|
||||
|
||||
# Set the current directory if none is passed with the command.
|
||||
path = "."
|
||||
logger.warning(
|
||||
@@ -127,7 +137,6 @@ def get_current_path(path) -> str:
|
||||
)
|
||||
return path
|
||||
else:
|
||||
|
||||
# Checks if the path, entered by the user, exists.
|
||||
if os.path.exists(path) is True:
|
||||
logger.debug(
|
||||
|
||||
Reference in New Issue
Block a user