-
-
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
Temporary file/directory support #1540
Comments
Hey @heinezen , I'm interested in working with this issue. And also can you please elaborate more about the tasks that exactly what I've to do. |
@Ashhar-24 Hey, I assigned you to to the issue nw :) Most of what we want from the task should be in the issue description already. The general goal is to make temporary file creation/access more easier than it is right now. For a start, I think you should try out these steps:
I think this should give you a good idea how to start. If you get stuck, you can ask more questions in the Matrix chat. |
Hey @heinezen , I'm interested in working with this issue. Thank you :) |
go for it! |
@viswes31 Everything from the tasklist that's not ticked is still up for grabs ^^ |
@alamt22 Yeah, there are a few tasks in the list that are still open, so you can try to solve them :) |
Required Skills: Python or C++
Difficulty: Easy
It would be nice if we could create temporary files/directories in our current file system abstraction API. We currently only use temporary structures in the converter, but they could be useful in other places, e.g. for unzipping archives or on-disk caching.
Creation of temporary files could be implemented in our Python file API or our C++ file API or in both. The Python-side implementation is more preferrable at the moment, since the converter is written Python and temporary files already have an active use case there.
The easiest way to implement support probably is to add a method that calls the underlying system libraries for temporary file/directory creation:
tempfile
modulestd::filesystem
andstd::tmpfile
The retrieved path is then wrapped in our
Path
/Directory
classes and returned by the method.Tasks:
Further Reading
tempfile
moduleThe text was updated successfully, but these errors were encountered: