Skip to content

Fix #377: Don't apply perms to folders when createFolders=true#420

Open
HuiNeng6 wants to merge 3 commits intocom-lihaoyi:mainfrom
HuiNeng6:fix/377-create-folders-perms
Open

Fix #377: Don't apply perms to folders when createFolders=true#420
HuiNeng6 wants to merge 3 commits intocom-lihaoyi:mainfrom
HuiNeng6:fix/377-create-folders-perms

Conversation

@HuiNeng6
Copy link
Copy Markdown

@HuiNeng6 HuiNeng6 commented Apr 1, 2026

Fixes issue #377

Problem

When using createFolders=true with a custom perms setting, the perms were also applied to created directories, causing them to lack executable permission.

Solution

Remove the perms parameter from makeDir.all calls when createFolders=true. Directories are now created with default permissions.

Changes

Modified 4 locations in ReadWriteOps.scala

HuiNeng6 added 3 commits April 1, 2026 14:58
The broken pipe handler thread was preventing the program from exiting
because it was not marked as a daemon thread. This fix marks the thread
as daemon so the program can exit normally after the pipeline completes.

Based on the suggested fix in issue com-lihaoyi#417 by JaredNeil.
…true

When using createFolders=true with a custom perms setting, the perms
were also applied to the created directories. This caused the directories
to lack executable permission, making them inaccessible.

This fix removes the perms parameter from makeDir.all calls, so directories
are created with default permissions (which include executable permission).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant