Skip to content

Adds support for nested directories#293

Merged
dledda-r7 merged 4 commits into
rapid7:masterfrom
msutovsky-r7:feat/stdapi/mkdir/nested_dirs
May 11, 2026
Merged

Adds support for nested directories#293
dledda-r7 merged 4 commits into
rapid7:masterfrom
msutovsky-r7:feat/stdapi/mkdir/nested_dirs

Conversation

@msutovsky-r7
Copy link
Copy Markdown
Contributor

Fixes mkdir inconsistency. This address the inconsistency between mkdir among Meterpreter and other types of sessions.

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds “mkdir -p” style behavior to Meterpreter’s mettle stdapi filesystem mkdir handler to align directory creation semantics with other session types.

Changes:

  • Updates fs_mkdir to attempt creation of intermediate path components when given a nested directory path.
  • Switches mkdir handling from a single eio_mkdir call to manual path splitting + per-component existence checks/creation.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread mettle/src/stdapi/fs/file.c
Comment thread mettle/src/stdapi/fs/file.c
Comment thread mettle/src/stdapi/fs/file.c
@dledda-r7 dledda-r7 merged commit 7aeef7c into rapid7:master May 11, 2026
35 of 36 checks passed
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.

#mkdir is inconsistent

3 participants