Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 0 additions & 9 deletions notes_app/file.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,15 +60,6 @@ def __init__(self, file_path, controller, defaults):
str, str
] = self._transform_raw_data_content_to_data_by_sections()

@staticmethod
def get_validated_file_path(file_path):
try:
with open(file=file_path, mode="r"):
pass
except (PermissionError, FileNotFoundError, IsADirectoryError):
return
return file_path

def _get_validated_raw_data(self, raw_data) -> str:
matches = re.findall(
self.defaults.DEFAULT_SECTION_FILE_SEPARATOR_REGEX, raw_data
Expand Down