In safe-bash 0.1.555, the built-in mkdir returns immediately when -p finds an existing directory. For filesystems advertising implicitDirectories, that directory can exist only through descendants, so this skips the filesystem's recursive mkdir operation that persists explicit directory metadata.
Reproduction against Poe's real entity/store filesystem:
- Write
/reports/drafts/note (implicit parents).
- Run
mkdir -p /reports/drafts (success).
- Run
rm /reports/drafts/note.
test -d /reports/drafts incorrectly exits 1. Standard Bash preserves the directory.
The adapter's mkdir(path, {recursive: true}) already materializes these parents. The short circuit is in dist/safe-bash/commands/filesystem.js, createDirectory, before any adapter call; prepareDirectory is not used here. Please let implicit-directory filesystems materialize existing directories for mkdir -p while retaining standard errors, modes and verbose behavior. No custom command replacement is being added in Poe.
In safe-bash 0.1.555, the built-in mkdir returns immediately when
-pfinds an existing directory. For filesystems advertisingimplicitDirectories, that directory can exist only through descendants, so this skips the filesystem's recursive mkdir operation that persists explicit directory metadata.Reproduction against Poe's real entity/store filesystem:
/reports/drafts/note(implicit parents).mkdir -p /reports/drafts(success).rm /reports/drafts/note.test -d /reports/draftsincorrectly exits 1. Standard Bash preserves the directory.The adapter's
mkdir(path, {recursive: true})already materializes these parents. The short circuit is indist/safe-bash/commands/filesystem.js,createDirectory, before any adapter call;prepareDirectoryis not used here. Please let implicit-directory filesystems materialize existing directories for mkdir -p while retaining standard errors, modes and verbose behavior. No custom command replacement is being added in Poe.