Skip to content

Conversation

@djberg96
Copy link
Contributor

@djberg96 djberg96 commented Oct 3, 2025

This PR adds a mktmpdir method along with corresponding tests.

There is also an update to the glob method to support options. Without this change I get:

memfs/lib/memfs/dir.rb:66:in `block (2 levels) in glob': undefined method `|' for an instance of Hash (NoMethodError)
  File.fnmatch?(pattern, path, flags | GLOB_FLAGS)
  from /Users/dberger/Dev/memfs/lib/memfs/dir.rb:65:in `any?'
  from /Users/dberger/Dev/memfs/lib/memfs/dir.rb:65:in `block in glob'
  from /Users/dberger/Dev/memfs/lib/memfs/dir.rb:64:in `select'
  from /Users/dberger/Dev/memfs/lib/memfs/dir.rb:64:in `glob'

Addresses #36

Mostly written by Claude 4.5.

fail-fast: false
matrix:
ruby-version: ['3.2', '3.1', '3.0', '2.7', '2.6']
ruby-version: ['3.4', '3.3', '3.2', '3.1', '3.0', '2.7']
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I ended up making a separate PR for this stuff: #49

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