Quantcast
Channel: help - Forum - FlexGet
Viewing all articles
Browse latest Browse all 837

File attribute (permissions, date) control

$
0
0

@sjthespian wrote:

Is there any way to control some of the attributes of the files that are created by flexget? For example, I would like to make sure that files have the group write bit set, and set the file mtime to the pubDate of the rss item. Any ideas?

One of the reasons for the permissions ask is due to the way flexget is currently creating files. They come out looking like:
-rwx--x--x 1 user group 1234 Nov 19 13:02 downloaded_file.mp3
I really don't need execute permissions set on these files and I would like to make sure I end up with group read/write and world read. I know I can force the umask before startup, but is there a better way?

I'm running flexget with the kmb32123/flexget-dockerfile image, and here's an example config:

tasks:
  altonbrowncast:
    template:
      - rename_to_title
    rss: http://altonbrown.com/feed/podcast
    exists: '/volume1/Music/Podcasts/Cooking/The Alton Browncast'
    download: '/volume1/Music/Podcasts/Cooking/The Alton Browncast'
templates:
  global:
    accept_all: yes
  rename_to_title:
    set:
      filename: '{{title}}{{filename|pathext}}'

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 837

Trending Articles