Convert from URL to File Path String?
Josh Mellicker
josh at dvcreators.net
Thu Nov 1 03:12:32 EDT 2007
if "file://localhost/" will always be the part you want to get rid
of, if your variable is called "tLoc", you can do this:
replace "file://localhost/" with empty in tLoc
---
If you need to create local folders to match your remote path, see:
http://revcoders.org/create-folder/#comment-31
On Oct 31, 2007, at 4:38 PM, Dave wrote:
> Hi,
>
> I have a URL of the form:
>
> file://localhost/Users/Dave/Folder/Folder/filex.xxx
>
> and I want to convert it to:
>
> /Users/Dave/Folder/Folder/filex.xxx
>
> Is there a function to do this, or do I just have to remove "file;//
> localhost" from the front of the string?
>
> Thanks a lot
> All the Best
> Dave
>
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
More information about the use-livecode
mailing list