Re: rename folder not working?

2017-12-14 Thread Brian Milby via use-livecode
Did you try: revMoveFolder "/Users/bobsneidar/Documents/Installs/Childrens Law Center/201", "/Users/bobsneidar/Documents/Installs/bobtest" This should move “201” from point a to b. For non-win32 it just uses the mv shell command anyway. (mv does not like ~ though). Also, you can get the result

Re: rename folder not working?

2017-12-14 Thread Bob Sneidar via use-livecode
Hey that's a good one. Bob S > On Dec 14, 2017, at 10:31 , J. Landman Gay via use-livecode > wrote: > > I'd saved this one: > > on revSBEnsureFolder pFolder > set the itemDel to "/" > if there is no folder pFolder and pFolder is not empty then >

Re: rename folder not working?

2017-12-14 Thread J. Landman Gay via use-livecode
I'd saved this one: on revSBEnsureFolder pFolder set the itemDel to "/" if there is no folder pFolder and pFolder is not empty then revSBEnsureFolder item 1 to -2 of pFolder if the result is not empty then return the result create folder pFolder return the result end if end

Re: rename folder not working?

2017-12-14 Thread Alex Tweedly via use-livecode
Write yourself (or check if the Master Library already has) a little function  ensureFolderExists pPathName which will iterate down the elements of the path, checking htey exist, or creating if need be. (I *know* I have one somewhere - but it would be faster to re-write than to find :-)

Re: rename folder not working?

2017-12-14 Thread Bob Sneidar via use-livecode
Okay it looks like the revMoveFolder suffers from the same problem that renameFolder does: It only works on the endpoint. CRAP! Why so difficult? I'll come up with a workaround I suppose, or else start saving filled forms in the database itself. Thanks all for your help. Bob S > On Dec

Re: rename folder not working?

2017-12-14 Thread Bob Sneidar via use-livecode
For Mac sure. Then I need to deal with Windows. But it's my understanding that the rev commands for files use shell anyway, so the work has at least partly been done. But looking at the rev commands it appears there is a revMoveFolder! Lemme try that one. Bob S > On Dec 14, 2017, at 08:22

Re: rename folder not working?

2017-12-14 Thread Mike Bonner via use-livecode
Can you use shell? mv to move a folder or cp -R and do a recursive copy? >From reading the dictionary, it does seem that your first example should work if the intention is to move the 201 folder from "Childrens Law Center" to folder "bobtest" assuming bobtest already exists, and folder 201

Re: rename folder not working?

2017-12-14 Thread Bob Sneidar via use-livecode
looks like revCopyFile will do a 1 minute beachball before timing out if the path does not exist. So I need to check for the existence of the folder path first. Trouble with that is if folder "/users/bobsneidar/installs/customer2/" does not exist I cannot simply say create folder

Re: rename folder not working?

2017-12-14 Thread Bob Sneidar via use-livecode
Okay looks like I need to copyFolder, then deleteFolder after checking the result. Bob S > On Dec 14, 2017, at 07:38 , Bob Sneidar via use-livecode > wrote: > > I am actually trying to MOVE a folder from one location to another. The 201 > folder is the

Re: rename folder not working?

2017-12-14 Thread Bob Sneidar via use-livecode
I am actually trying to MOVE a folder from one location to another. The 201 folder is the folder where all the forms for a site go, and that is inside a Customer folder containing all the site folders. Inside the site folder there may be device folders where the forms specific to a device go.

Re: rename folder not working?

2017-12-14 Thread Bob Sneidar via use-livecode
OK Mark I think Isee what you are saying. it will only change the ENDPOINT folder name, and because the ENDPOINT folder name is the same it fails. I think this has to be a bug. Bob S > On Dec 13, 2017, at 17:00 , Bob Sneidar via use-livecode > wrote: > >