".." in Folder List
Posted: Mon Nov 23, 2015 4:33 pm
Today's issue of This Week In Livecode (TWILC) pointed to an interesting bug report that got my attention. I've started a project to bring HMVC to revIgniter which relies on ".." to walk directories. My project is based on 2 Codeigniter HMVC projects that use ".." to walk the servers directories to get files. I've also used this technic on other Webserver applications to get to files from a relative location.
Am I wrong with this?
And more importantly, not using ".." for path traversal will mean that my solution of HMVC for revIgniter will be more "invasive" to the core revIgniter framework. Do I need to go back and re-think how I've implemented directory traversals in HMVC revIgniter?
Bug report reference: https://github.com/livecode/livecode/pull/3073
Thanks in advance,
Bob
My question is this. I think I read in the bug report that ".." will remain in the Folders List as valid for backwards compatibility. But I believe web app scripting does use and expects ".." to be a valid path and that this is a valid method to traverse directories especially in a web application script.So, yes, '..' should appear in 'the folders' for all platforms... However, I think it should be filed as an anomaly that it does (it shouldn't appear on any platforms as it communicates no useful information at all!)
@mwieder
mwieder commented on Oct 19
Au contraire... I rely on this for directory walking.
@peter-b
Collaborator
peter-b commented on Oct 19
@mwieder Well, you shouldn't.
Am I wrong with this?
And more importantly, not using ".." for path traversal will mean that my solution of HMVC for revIgniter will be more "invasive" to the core revIgniter framework. Do I need to go back and re-think how I've implemented directory traversals in HMVC revIgniter?
Bug report reference: https://github.com/livecode/livecode/pull/3073
Thanks in advance,
Bob