rename folder not working?

Bob Sneidar bobsneidar at iotecdigital.com
Thu Dec 14 10:38:14 EST 2017


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. It looks like this:

Installs
...Customer 1
......Site 1
.........Device 1
.........Device 2
......Site 2
.........Device 3
.........Device 4
...Customer 2

and so on. I have a feature where I can transfer a device to another site, and a site to another customer. An odd notion until you relize how often data entry people enter duplicates because of spelling changes on the input form or simply because they don't want to take the time to search properly. 

Having transferred the Site in the database to the correct customer, I now need to move the site folder to another customer. renameFolder seems to be the only mechanism in place to do this, but apparently will only rename the ENDPOINT and NOT a SUBFOLDER of the ENDPOINT. My opinion is it ought to do either. 

Bob S


> On Dec 13, 2017, at 17:04 , Mark Wieder via use-livecode <use-livecode at lists.runrev.com> wrote:
> 
> On 12/13/2017 04:57 PM, Bob Sneidar via use-livecode wrote:
>> Thanks Mark. "201" WAS the endpoint. Your suggestion worked! But I didn't want to copy the whole folder just one of it's subfolders. I even added other folders and tried to move that, but it failed. It is acting like it will only move folders a certain level deep.
> 
> Not sure what you mean.
> Renaming doesn't copy anything.
> Did you intend to rename the "201" folder instead?
> 
> -- 
> Mark Wieder
> ahsoftware at gmail.com





More information about the use-livecode mailing list