mirror of
https://git.vectorsigma.ru/public/tubearchivist.git
synced 2026-08-05 01:29:24 +00:00
fix chown for channel folder creation
This commit is contained in:
@@ -395,8 +395,8 @@ class VideoDownloader:
|
|||||||
new_folder = os.path.join(videos, channel_name)
|
new_folder = os.path.join(videos, channel_name)
|
||||||
if not os.path.exists(new_folder):
|
if not os.path.exists(new_folder):
|
||||||
os.makedirs(new_folder)
|
os.makedirs(new_folder)
|
||||||
if host_uid and host_gid:
|
if host_uid and host_gid:
|
||||||
os.chown(new_folder, host_uid, host_gid)
|
os.chown(new_folder, host_uid, host_gid)
|
||||||
# find real filename
|
# find real filename
|
||||||
cache_dir = self.config["application"]["cache_dir"]
|
cache_dir = self.config["application"]["cache_dir"]
|
||||||
all_cached = ignore_filelist(os.listdir(cache_dir + "/download/"))
|
all_cached = ignore_filelist(os.listdir(cache_dir + "/download/"))
|
||||||
|
|||||||
Reference in New Issue
Block a user