Skip to content

Commit 595f27f

Browse files
committed
fix: update directory creation permissions to use os.ModePerm for consistency, fix #537
1 parent 2538417 commit 595f27f

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

internal/esbuild/fs.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ func copyStaticFiles(currentPath string, targetPath string) error {
1616
}
1717

1818
// Create target directory if it doesn't exist
19-
if err := os.MkdirAll(targetPath, 0o755); err != nil {
19+
if err := os.MkdirAll(targetPath, os.ModePerm); err != nil {
2020
return fmt.Errorf("failed to create target directory: %w", err)
2121
}
2222

@@ -37,7 +37,7 @@ func copyStaticFiles(currentPath string, targetPath string) error {
3737

3838
// If it's a directory, create it in target
3939
if info.IsDir() {
40-
return os.MkdirAll(targetFilePath, 0o755)
40+
return os.MkdirAll(targetFilePath, os.ModePerm)
4141
}
4242

4343
// Copy the file

0 commit comments

Comments
 (0)