Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow use of static and global File, Directory objects #2529

Merged
merged 1 commit into from
Jul 20, 2022

Conversation

mikee47
Copy link
Contributor

@mikee47 mikee47 commented Jul 19, 2022

Using global or static File objects doesn't work because the filesystem has not yet been constructed.

This PR adds a default filesystem mechanism for FsBase objects. File system is passed to constructor, but null is now interpreted as 'default file system'.

Sming implements the IFS::getDefaultFileSystem() function which is called for such objects.

Added simple default filesystem mechanism for `FsBase` objects.
File system is passed to constructor, but null is now interpreted as 'default file system'.

Sming implements the `IFS::getDefaultFileSystem()` function.
@mikee47 mikee47 force-pushed the fix/default-filesystem branch from 01365b7 to 47c93b3 Compare July 19, 2022 20:38
@slaff slaff added this to the 4.7.0 milestone Jul 20, 2022
@slaff slaff merged commit fa95914 into SmingHub:develop Jul 20, 2022
@mikee47 mikee47 deleted the fix/default-filesystem branch July 23, 2022 11:04
@slaff slaff mentioned this pull request Jul 25, 2022
5 tasks
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.

2 participants