Accessing files on a local network file server - BEST PRACTICE?

Ralph DiMola rdimola at evergreeninfo.net
Fri Sep 25 18:56:49 EDT 2020


On my Mac this form works to a Win 10 smb share

put url ("file://volumes/shareName/folder/sub-folder/file.ext")

Ralph DiMola
IT Director
Evergreen Information Services
rdimola at evergreeninfo.net

-----Original Message-----
From: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] On Behalf Of Paul Dupuis via use-livecode
Sent: Friday, September 25, 2020 6:24 PM
To: use-livecode at lists.runrev.com
Cc: Paul Dupuis
Subject: Re: Accessing files on a local network file server - BEST PRACTICE?

Thanks Bob,

Yes, the error messages you get on a failed file open are pretty generic.

I am thinking that whether Mac or Win, the key is to check for whether there is a folder:

/volumes/mountpoint/ (osx)
or
//server/mountpoint/ (win)

For a given path tPath, I can tell if it is a windows server bu looking at the 1st two characters of tPath and if they are // then I can try t pull off //server/mountpoint and test for a folder by that name exists.

However, on OSX,

/volumes/mountpoint/ looks just like any local path.


On 9/25/2020 6:12 PM, Bob Sneidar via use-livecode wrote:
> QUALIFIER: this is in Livecode on a Mac. Mac mount points work differently than Windows. However using the form /volumes/mountpoint/folderpath/filename I get the simple error “Can’t open that file.” No detail about WHY I cannot open it. I can see how it would be helpful if the result contained “path not accessible”, “write access denied”, “file already exists” etc.
>
> Bob S
>
>
> On Sep 25, 2020, at 2:28 PM, Bob Sneidar via use-livecode <use-livecode at lists.runrev.com<mailto:use-livecode at lists.runrev.com>> wrote:
>
> OK using your convention I cannot even open a file with the server 
> mounted and an actual file that DOES exist! 
> (//servername/mountpoint/pathtofile/filename)
>
> Bob S
>
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


_______________________________________________
use-livecode mailing list
use-livecode at lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode





More information about the use-livecode mailing list