Archive
Virtual Filesystem in Smart Mobile Studio
Storage and HTML5, say what you will but it’s not exactly optimal. In essence storage can be reduced to “read everything, but unless you have special access rights, you cant touch a single file”. Well this is true, a hundred-fold for mobile developers.
In order to make things easy to work with QTX will introduce what is known as a virtual filesystem. In short it allows you to save X number of files, whatever they may be, into a single JSON serializable object. This object can then be stored either in local-storage, global-storage and even a database.
While it doesn’t change the fact that you can’t touch the filesystem from the browser, it will at least make it easy to generate and save data when your application runs. It will be especially useful for mobile development since phonegap removes the size limitations desktop browser enforce.
Also, making a “filesystem editor” program which allows you to create package files (think zip files here) which can be included with your smart applications as a resource — well, it wont be hard to achieve. And it doesnt violate any browser rules either, as long as you understand that you cant write to it, unless you store it in local-storage or some other browser friendly target that is.
Practical uses?
The core of the system is abstract, meaning that it can be made to read and write data to anything. Why not code an FTP client using web-sockets? Then a virtual filesystem class will be very handy indeed!
Or perhaps you want to interface with dropbox or your google drive? Again being able to plug a virtual filesystem on top of such a system can be valuable.
The code
If you want to check out the code, head over to google code and preview qtx.storage.pas. It’s still early in development but it will be finished quite soon.
Recent
The vatican vault
- January 2022
- October 2021
- March 2021
- November 2020
- September 2020
- July 2020
- June 2020
- April 2020
- March 2020
- February 2020
- January 2020
- November 2019
- October 2019
- September 2019
- August 2019
- July 2019
- June 2019
- May 2019
- April 2019
- March 2019
- February 2019
- January 2019
- December 2018
- November 2018
- October 2018
- September 2018
- August 2018
- July 2018
- June 2018
- May 2018
- April 2018
- March 2018
- February 2018
- January 2018
- December 2017
- November 2017
- October 2017
- August 2017
- July 2017
- June 2017
- May 2017
- April 2017
- March 2017
- February 2017
- January 2017
- December 2016
- November 2016
- October 2016
- September 2016
- August 2016
- July 2016
- June 2016
- May 2016
- April 2016
- March 2016
- January 2016
- December 2015
- November 2015
- October 2015
- September 2015
- August 2015
- June 2015
- May 2015
- April 2015
- March 2015
- February 2015
- January 2015
- December 2014
- November 2014
- October 2014
- September 2014
- August 2014
- July 2014
- June 2014
- May 2014
- April 2014
- March 2014
- February 2014
- January 2014
- December 2013
- November 2013
- October 2013
- September 2013
- August 2013
- July 2013
- June 2013
- May 2013
- February 2013
- August 2012
- June 2012
- May 2012
- April 2012