Skip to content

Commit

Permalink
fixed name extraction for galleries
Browse files Browse the repository at this point in the history
  • Loading branch information
Barakudum committed Feb 27, 2024
1 parent b6c7e38 commit bed26f8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/jarklin/cache/cache.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,8 +135,8 @@ def generate_info_file():
generate_info_file()
info.append(InfoEntry(
path=str(source.relative_to(self.root)),
name=source.stem,
ext=source.suffix,
name=source.stem if source.is_file() else source.name,
ext=source.suffix if source.is_file() else "",
creation_time=get_creation_time(source),
modification_time=get_modification_time(source),
meta=json.loads(dest.joinpath("meta.json").read_bytes()),
Expand Down

0 comments on commit bed26f8

Please sign in to comment.