Skip to content

Commit b49d045

Browse files
committed
Compose: Create directories for configuration data
1 parent 2451b11 commit b49d045

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

compose/src/core/Runner.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,10 @@ private void WriteConfig()
8383
// Ensure that the root directory maintains the correct permissions
8484
ChmodRecursive(root, P0777, P0666);
8585

86+
// Create directories as needed
87+
Directory.CreateDirectory(
88+
Path.GetDirectoryName(path));
89+
8690
// Write the file and set its permissions
8791
File.WriteAllText(path, c.Value);
8892
ChmodRecursive(root, P0777, P0666);

0 commit comments

Comments
 (0)