Skip to content

Commit

Permalink
Merge branch 'dev' into Python-3.13
Browse files Browse the repository at this point in the history
  • Loading branch information
Avasam authored Oct 8, 2024
2 parents f206024 + d74bd20 commit 7a43ef6
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/split_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -206,14 +206,13 @@ def is_user_file(path: "StrPath"):
if os.path.isdir(path) or os.path.basename(path).startswith("."):
return False
stat_result = os.stat(path)
if stat_result.st_mode & UF_HIDDEN:
return False
if sys.platform == "win32":
return not (
(stat_result.st_file_attributes & FILE_ATTRIBUTE_SYSTEM)
| (stat_result.st_file_attributes & FILE_ATTRIBUTE_HIDDEN)
)
return True
# UF_HIDDEN is present on regular Windows files
return not stat_result.st_mode & UF_HIDDEN


def __get_images_from_directory(directory: "StrPath"):
Expand Down

0 comments on commit 7a43ef6

Please sign in to comment.