-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
File system api c++: added support for creating temp. files and directories #1706
Conversation
1c697a8
to
47e32bc
Compare
@heinezen I think this should be it for the 2 methods. Whenever you're free, let me know if there's anything else I should consider to improve the code. |
Thanks, I'll try to review it soon-ish :) |
Made the requested changes to file.cpp. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, but you still need to fix the problems indicated by the sanity check.
Fixed the sanity check issues. |
…ectory creation method in directory.cpp
… place a file into it
fcb97d8
to
a144c8c
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I fixed the To
file issue and I think we can merge here :)
Addresses #1540
This is currently a static method in util/path.cpp for creating a temp file, wrapping it in a File object, and returning it. I am planning on doing one for temporary directories later, wrapping it in a Directory object instead. Let me know if you'd like me to wrap both in Path objects instead--I'm not really sure how to do that since Path takes in a fslike shared pointer rather than the file_like one produced by File.