Jim,
Thanks!

That put me on the right track.
yes, mv needs a full destination path (at least when run through LEP).

The permission error was coming from LEP 'pointing' at the hard drive 
as the current directory; and as such LEP could not write to the 
location.

I had tried a full destination path, but wen I re-ran the code, I 
noticed a problem with the posix path name for the destination 
directory, which is why it failed previously.

Again, Thanks for pointing me in the right direction.


On Sun, 22 Apr 2018 09:14:03 -0400, Jim Crate via 4D_Tech wrote:
> On Apr 20, 2018, at 5:45 PM, Chip Scheide via 4D_Tech 
> <[email protected]> wrote:
> 
>> Trying to rename a file.
> [snip]
>> when I execute the below line of (LEP) code I get a permissions error
>> mv /Volumes/Macintosh\ HD/Users/chip/Desktop/_Test\ File\ 
>> move/Some_Win_Name.txt2 Testing.txt
>> 
>> the exact error:
>> mv: rename /Volumes/Macintosh HD/Users/chip/Desktop/_Test File 
>> move/Some_Win_Name.txt2 to Testing.txt: Permission denied\n
> 
> Have you tried specifying the full destination path? With the path 
> specified as just filename it will probably to the current working 
> directory (I.e. as if you specified “./Testing.txt”), which is 
> probably different in Terminal and 4D/LEP.  Chances are you don’t 
> have write permissions in the 4D/LEP current working directory. You 
> can test that theory using the pwd command.
> 
> Jim Crate
> 
> **********************************************************************
> 4D Internet Users Group (4D iNUG)
> FAQ:  http://lists.4d.com/faqnug.html
> Archive:  http://lists.4d.com/archives.html
> Options: https://lists.4d.com/mailman/options/4d_tech
> Unsub:  mailto:[email protected]
> **********************************************************************
---------------
Gas is for washing parts
Alcohol is for drinkin'
Nitromethane is for racing 
**********************************************************************
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:[email protected]
**********************************************************************

Reply via email to