-
Notifications
You must be signed in to change notification settings - Fork 23
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
libticalcs: Ability to delete folders #84
Comments
AFAICT, the ability to delete folders remotely is specific to the Nspire series, and unlike the folder creation operation, it can't be emulated on the TI-68k series, where remote file deletion was added only in the newest versions of the OS. I guess that this single protocol aspect is the main reason why I never wrapped it as a top-level operation, all the more I eventually exported a significant number of previously internal DBUS, DUSB and NSP functions for direct usage. However, I see that the Nspire-specific folder deletion operation isn't exposed by the best available In the end, I suppose it could be made a top-level function, indeed named In general, you can test TI-68k calculators, and communication with them, on TIEmu. Unlike the whole TI-Z80, TI-eZ80 and Nspire series, TI-68k OS upgrades downloaded from TI's site or elsewhere are enough to emulate them for all purposes but the OS upgrade transfer process, which is... seldom needed. |
…operation. Adjust test_ticalcs_2 and torture_ticalcs. Fixes #84. Signed-off-by: Lionel Debroux <[email protected]>
I've pushed an untested commit for doing what you need. Mostly a copy-paste-modify job, so we'll see whether I did silly mistakes. At least, I was able to spot a number of issues in the previous commit, and fold fixes into that one. |
It works, thanks! |
Heh. Fixed locally, thanks. FYI, there's already a FUSE implementation of file operations on a Nspire: https://github.com/tangrs/fuse-nspire . It needs to be paired with Vogtinator's fork https://github.com/Vogtinator/libnspire , which contains a number of important bugfixes for the original libnspire's poor reliability, and support for the CX II's native NNSE protocol (though the CX II can fall back to classic NavNet, as was recently discovered - that's what libti* do). |
…on. Adjust test_ticalcs_2 and torture_ticalcs. Fixes #84. Signed-off-by: Lionel Debroux <[email protected]>
Well there goes 2-3 days of my life. Thanks anyway |
You should still publish your code somewhere :) |
Indeed, you clearly reached a point of usability for some file operations, and there are good reasons to use libti* instead of any calculator series-specific library :) |
True, I may or may not work on it anyway, or maybe when I'm bored and/or want an excuse to try using FUSE. If anyone's interested, here's the source code (expects https://github.com/debrouxl/tilibs/tree/experimental2 to be in |
A partial C++ wrapper for libti*... interesting :) |
I prefer writing wrappers in C++ since it lets me a bit more lazy about memory management, though I usually write them myself (unless if there are official, in repo ones) because I don't wanna bring more dependencies than necesary. |
…on. Adjust test_ticalcs_2 and torture_ticalcs. Fixes #84. Signed-off-by: Lionel Debroux <[email protected]>
…on. Adjust test_ticalcs_2 and torture_ticalcs. Fixes #84. Signed-off-by: Lionel Debroux <[email protected]>
…on. Adjust test_ticalcs_2 and torture_ticalcs. Fixes #84. Signed-off-by: Lionel Debroux <[email protected]>
…on. Adjust test_ticalcs_2 and torture_ticalcs. Fixes #84. Signed-off-by: Lionel Debroux <[email protected]>
…on. Adjust test_ticalcs_2 and torture_ticalcs. Fixes #84. Signed-off-by: Lionel Debroux <[email protected]>
…on. Adjust test_ticalcs_2 and torture_ticalcs. Fixes #84. Signed-off-by: Lionel Debroux <[email protected]>
…on. Adjust test_ticalcs_2 and torture_ticalcs. Fixes debrouxl#84. Signed-off-by: Lionel Debroux <[email protected]>
…on. Adjust test_ticalcs_2 and torture_ticalcs. Fixes debrouxl#84. Signed-off-by: Lionel Debroux <[email protected]>
…on. Adjust test_ticalcs_2 and torture_ticalcs. Fixes #84. Signed-off-by: Lionel Debroux <[email protected]>
…on. Adjust test_ticalcs_2 and torture_ticalcs. Fixes #84. Signed-off-by: Lionel Debroux <[email protected]>
…on. Adjust test_ticalcs_2 and torture_ticalcs. Fixes #84. Signed-off-by: Lionel Debroux <[email protected]>
…on. Adjust test_ticalcs_2 and torture_ticalcs. Fixes #84. Signed-off-by: Lionel Debroux <[email protected]>
…on. Adjust test_ticalcs_2 and torture_ticalcs. Fixes #84. Signed-off-by: Lionel Debroux <[email protected]>
…on. Adjust test_ticalcs_2 and torture_ticalcs. Fixes #84. Signed-off-by: Lionel Debroux <[email protected]>
I'm trying to write a FUSE filesystem (I know, a bit overkill) to manipulate files on the calculator, or at least a CLI utility, but it seems that I cannot delete directories.
It looks like there are two commands for deleting a file and a folder, while libticalcs only uses one. It seems like the ability to delete folders is already in the code, just unexposed.
I can (try to) implement this, but I don't know whether to expand
ticalcs_calc_del_var
to handleVarRequest
s with an emptyname
and non-emptyfolder
, or to create an entirely new function (say,ticalcs_calc_del_fld
). Also, the TI-86k supports folders, and I don't have one to test (nor do I know if you can actually remotely delete folders).The text was updated successfully, but these errors were encountered: