Skip to content
This repository has been archived by the owner on Jul 5, 2024. It is now read-only.

Commit

Permalink
set file perms to 666
Browse files Browse the repository at this point in the history
  • Loading branch information
Jules-WinnfieldX committed Mar 6, 2024
1 parent 4e3794c commit e872701
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion cyberdrop_dl/downloader/downloader.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import asyncio
import copy
import itertools
import os
import traceback
from dataclasses import field, Field
from functools import wraps
Expand Down Expand Up @@ -350,7 +351,9 @@ async def download(self, media_item: MediaItem) -> None:
except FileExistsError:
complete_file, _partial_file = await self.iterate_filename(complete_file, media_item)
partial_file.rename(complete_file)


os.chmod(complete_file, 0o666)

await self.set_file_datetime(media_item, complete_file)

await self.mark_completed(media_item)
Expand Down

0 comments on commit e872701

Please sign in to comment.