Skip to content

Override default directory permission of 700 as of 3.21 #5484

Answered by nickanderson
jgoldber13 asked this question in Q&A
Discussion options

You must be logged in to vote

Hi Jay o/,

  • I see a typo here, recurse not recurs

1 syncing a directory from a source to a target where the target directory does not already exist:

files: "$(target_dir)/." create => "true", perms => "mog("$(mode)", "${owner)", "$(group)"), depth_search => recurs("inf"). copy_from => copyfrom_sync($(source_dir));

If I pass in 444 as the mode and target_dir doesn't exist, then target_dir was created with mode 755 prior to 3.21, and now is created with mode 444 as of 3.21.

Is the behavior in 3.21 a problem? I believe prior to 3.21 the directory would be created with 755, but then it would be changed to 444. Now after 3.21 it should as you note get created with the permissions specified …

Replies: 3 comments 4 replies

Comment options

You must be logged in to vote
2 replies
@jgoldber13
Comment options

@nickanderson
Comment options

Answer selected by jgoldber13
Comment options

You must be logged in to vote
1 reply
@nickanderson
Comment options

Comment options

You must be logged in to vote
1 reply
@nickanderson
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants