View Full Version : iFile V0.14
Darkchild
03-04-2008, 12:18 AM
W00T! another update :D!
This time with really good things!
here's the changelog:
Now deletes folders and subfolders (thanks masscat)
Now scrolls up and down (press up or down and hold it ;) )
DS now says hello :)
Cleaned up the "Current Dir" variable
Now displays the filesize :D
Fixed the warning window not disapearing when deleting a single file.
Added check for folder renaming (doesn't work yet :( )
Note : I am trying to update this as fast as I can, mind you though, I am learning as I go!
Download:
iFile v0.14 (http://altocircuito.net/darkchild/iFile014.rar)
Source (http://altocircuito.net/darkchild/iFile014.src.rar)
d1ddy
03-04-2008, 03:07 AM
when you gonna start making games , good job
Gh0ST
03-04-2008, 11:42 AM
Thanks ... here is my short bug report :
* Browsing works fine from my CycloDS
*Entering a folder named "+" leads to
"Items in folder : - 1
Fat error or running emu"
* Suggestion : B leave immediately the rename menu : I first try to rename a file in a subfolder and was stuck with B to cancel not working as long as a new name is not entered with the keyboard and no validation possible with the original name ( file already exist ) ... confuse me ( I think the subfolder was read only and the file was perhaps read only .. not sure ( i will try to reproduce this ... perhaps was it me pressing random keys .... but it was like froozen ... typing enter give no effect ( perhaps because the name was invalid ... not sure ) ... the file was then successfully renamed & deleted after a reboot ;-)
* Hidden subfolders not seen ... is it a feature ? ;-)
* Deleting folders is far from perfect ... I delete a folder from a sub folder of flickbook (Flickbook\Film_A\Layer_0\ ) and the files were still there after deletation confirmed. Than i delete a file inside the folder it was ok but browsing up and deleting the parent folder freezes ... every thing was fine after reboot ... files were there and direct delete of the subfolder was finally working. After reboot ( and Layer_0 finally delete ) i delete last file in folder Film_A and goes to parent folder ( Film_a ). I reproduce freeze when trying to delete immediately the parent folder.
Suggestion : Renamed file are now in front of my folders ( or in the middle depending of the name ). I sugges you add an option for alphabetical sorted view with folders first than files etc ? ...
Keep it up Thanks again for the source and your fast updates ;-)
No microSD cards were hurt ^^
Darkchild
03-04-2008, 11:49 AM
Have you pressed enter? =P
You have to press enter to continue (Though I have to add case the "A" button is pressed)
Thank you for the testing, I'll get right on them!
Gh0ST
03-04-2008, 12:41 PM
Sorry i was on the way of editing my first post.
Yes i try enter but perhaps some space or weird caracters also before ( since i was trying to cancelling first with B ) so the name was not valid ...
perhaps
I'm more confortable now with iFile ^^
Darkchild
03-04-2008, 02:26 PM
:O so many, looks like I'll have to make a bugfix release :O
Edit : To begin, I made several "+" named folders + subfolders, and all show up ok :O
and in subfolders I have seen my hidden folders :O
all's well on my end..
Edit again :
Just deleted the "+" folders I created for testing, and started from deleting them "from the inside"
in other words:
"/+/+/+/+/"
I deleted the bold one and nothing went wrong, deleted successfully
then went back to the root of the card and deleted the "+" folder, deleted successfully!
Strange...
And you're the first one telling me these bugs o.o because I have 2 bug testers xD
Btw : file renaming might be buggy, because the function "rename()" was broken in my DevKitARM so I had to find a workaround, and so i did, copying the file with the new name and deleting the old one...so... >_> if you run out of space it's normal that it is buggy
Now on to your suggestions
Edit : The folders first then files is gonna be a bit tricky, but manageable.
I'm trying right now :)
Gh0ST
03-05-2008, 06:24 AM
Strange...
Perhaps it is finally not related to the "+".
In fact i just check that it is a folder with 536 ( > 512 ) files inside and 24 subfolders ... i will report later after renaming the "+" folder.
I know the file system of the cycloDS is limited in fat structure ( only 128 files in root are seen ) so it is perhaps something particular to my slot1 device since the card is working well under linux or windows but dosfsck was unable to checkdisk under DSlinux ( first time i saw something so )
It is a 2 Go Kingston card with 300 Mo free space but also a isolinux boot so the format is perhaps a little bit weird.
Total disk space: 2012971008 bytes (1.8747 gigabytes), 61431 clusters
Bytes per cluster: 32768 bytes
Number of files: 1393
Number of directories: 106
Total size of analyzed items: 1696038912 bytes (1.5796 gigabytes), 51759 clusters
Number of fragmented items: 0, 0.0000% of all items
Total size of fragmented items: 0 bytes, 0 clusters, 0.0000% of all items, 0.0000% of disk
Free disk space: 316702720 bytes, 9665 clusters, 15.7331% of disk
Thanks for your feedback i have others suggestions if you want like copy/move to a folder ;-)
You might be interested by DLDS (http://forum.gbadev.org/viewtopic.php?t=14630) also for further developpement.
UPDATE After renaming "+" to "A" everything was fine. Than i try to delete a readme.txt file based in a read only and hidden directory ( "Test" ) with read only argument and it works but deleting the folder goes wrong ! The operation was prompted as successfull but in fact TEST is still there... even after a reboot.
Then i've got again the same error. Error Item in forlder : -1 ( note the typing error in foRlder ) occurs only with folder ( "baseq2") in first place of the file list ( upper folder ) ! Trying to rename the folder also leads to an error and an empty file list. ( at this stage trying rename prompt "you are about to rename the file :" blank ... )
Than after a reboot "Test" was finally gone !!!
Hope it helps to solve that issue
vBulletin, Copyright ©2000-2008, Jelsoft Enterprises Ltd.