From 6eba03e8c25e9f5a32b318d1c74517bfd9fd096e Mon Sep 17 00:00:00 2001 From: HECer Date: Sun, 20 Oct 2024 16:41:44 +0200 Subject: [PATCH] - removed some unneccessary lines from FilePathExtractor --- file_path_extractor.py | 8 -------- 1 file changed, 8 deletions(-) diff --git a/file_path_extractor.py b/file_path_extractor.py index 6b77320..756f46f 100644 --- a/file_path_extractor.py +++ b/file_path_extractor.py @@ -20,14 +20,6 @@ class FilePathExtractor: return True def process(self, path): - # Check if the path exists at all - # Default values for non-existing paths - file_name = "" - file_extension = "" - file_name_with_extension = "" - folder_name = "" - folder_path = "" - folder_path = os.path.dirname(path) if os.path.dirname(path) else path # Use folder part of the path, even if it doesn't exist folder_name = os.path.basename(folder_path) file_name_with_extension = os.path.basename(path)