-
Notifications
You must be signed in to change notification settings - Fork 238
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 Access API #1594
base: master
Are you sure you want to change the base?
File System Access API #1594
Conversation
Writing to a file is being fixed as I noticed it was erasing the data and not writing. |
Also, tons of bug squashing and quality improvement will probably come in last. ToDo list for that time:
|
#81 Need to consider this issue. Could probably implement this as a |
Another thing to do: Edit: Not needed. Just let the people making the projects do it. |
It seems as though the files can be read and written to, but after they are written to, the extension breaks. Here's a modified working version of the code that is able to save data to the file more than once without breaking: |
Oop, forgot to format before committing, oh well. |
Okay, I now have reading and writing singular files done! |
And thank you, @kindpump for the fixes! That genuinely helped a ton and prevented my terrible, garbled JavaScript from breaking everything. |
If he's helped significantly, you can ask him if he wants to be credited for the help. |
I have put direct links to all resources and contributions in lines 7 to 16. |
I may go ahead and push some improved attribution |
Ah, named it wrong, oh well. |
4 main features left to implement before refining.
|
Because I have to create variables for each FileSystemFileHandle. And five is more than enough in my opinion. |
Use a array |
Another day. For now I will keep writing it under the current methods used. |
having a 5 file limit because you don't want to use an array does not inspire a lot of confidence in whoever takes the time to review the rest of the code... |
This Is on the list of things to do, but this needs to be an extension that works reliably. This is one of the few times I have used javascript, and I hadn't realized that arrays were an option. If I say another day I mean another day, and not never. |
Okay, I have lost most of my focus on the extension currently. I will close this PR and reopen it (if possible) when I am done. |
You should just mark it as a draft |
I think I'll rethink this extension. Also I am back at work on it. |
Just going to say this API gave me a headache. Next on the list (after making this extension) is [matrix], haha. |
Kate seems to not be committing changes |
Rewriting to match what my original goals were: Create a functional one.
apparently giving it my email just shows it without the numbers.. huh.. enjoy ig. |
I just realized why my commits aren't under my username, and it is stupid. Should be fixed next commit. |
Pushing changes to files doesnt work for |
I am no longer working on the second rewrite. I'm on to a third and final rewrite. I will not be revisiting that version. Edit: Why specifically executable files? |
I'm making a game that i will package as an exe |
The rewrite should fix it by allowing the end user (people like you or me) to interact with the raw functions of the API (plus a few needed tools). I can't say it is definite though. |
Oops, I forgot about this. Luckily I still have the repo on a hard drive, I'll get to work on it during class tomorrow I guess. |
Notice: The extension is receiving a well needed rewrite! Why? BUGS!
Contribution of ideas, images, code, etc. is welcome, plus you will be
recognized in the JS for your contribution (even if it doesn't make it through).
License:
GNU-GPL-v3*
Description
This extension brings the File System Access API (not to be confused with File System API) to Turbowarp.
Use cases
Features
Entire File System Access API
What else would you think it was?
If there is something in the JS file that needs to be changed, please let me know.