Moving a folder
Roger Eller
roger.e.eller at sealedair.com
Thu Jul 21 22:15:56 EDT 2011
On Thu, Jul 21, 2011 at 10:08 PM, Bob Sneidar wrote:
> Never done it, but I imagine you could shell out to check the permissions
> of where you are moving to. I don't know if there is a shell command to
> check effective permissions of the current user. If there are, do that.
> Barring that, a safer way would be to copy the files, check to make sure
> there were no errors, if there are bail, if there are not then delete the
> original.
>
> Bob
>
>
> On Jul 21, 2011, at 6:55 PM, Chip Thomas wrote:
>
> > What's the best way to move a folder (with all contents) on a user's
> system?
> >
> > rename folder tOldFolder to tNewFolder
> >
> > revMoveFolder tOldFolder, tNewFolder
> >
> > or using a shell command
> >
> >
> > Concerned about potential permissions issue that would prevent a proper
> > move. What's the best way around that?
> > _______________________________________________
> > 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
>
My preference is to not use shell commands unless you really must. By using
LC native as much as possible, there is less work when you meed it to work
on more than a single platform. If memory serves, the rename command was
the better of the two, as one of them would only work with an empty folder,
and the other would move a folder and its contents.
˜Roger
More information about the use-livecode
mailing list