nezd 2 Posted December 10, 2016 Share Posted December 10, 2016 OctoTapeFS v0.1 Slowest way to store your files Do you remember this days when your commodore loads software from tape? I don't, i weren't even born when commodore were popular. Well, now you could bring this days back with OctoTapeFS - The slowest way to store your files! Link to pastebin Video Showcase Possible arguments: -h Displays help message --save=path Save file from path to tape -l Loads file from tape --dump=path Save file from tape to path -v Toggle verbosity -f Disable waiting for user input in load TODO: Code compression(removing spaces) Make it faster Adding a file structure Quote Link to post Share on other sites
nezd 2 Posted December 11, 2016 Author Share Posted December 11, 2016 About code compression; The only way I see to remove spaces from code in places like while, function, etc. Any other ideas? Quote Link to post Share on other sites
Gorzoid 10 Posted December 11, 2016 Share Posted December 11, 2016 Nice work, I think the largest tape drive can store a few MB so you can store quite alot with this, albeit very slowly. Suggestions: "if var == true then" is the exact same as "if var then", just as "if var == false then" is the same as "if not var then" You may want to try mount this file to a /dev/tape_drive file. This would mean you could do let's say "cp /dev/tape_drive /home/myfile.txt" to read from tapedrive, or "cp /home/myfile.txt /dev/tape_drive" to write to tapedrive. Check out OpenOS' devfs.lua for info on making fake files. Quote Link to post Share on other sites