revCopyFolder

Jim Ault JimAultWins at yahoo.com
Tue Jul 10 18:05:30 EDT 2007


issue 1: does the destination folder exist?
you may have to delete it using the revDeleteFolder command, esp if there
are any files inside.  Just delete folder will not work.

issue 2:
try using 
if there is a folder sorce then answer "found it" & cr & sorce
if there is a folder dest then answer "found it" & cr & dest

to double check the syntax you are using.

Jim Ault
Las Vegas



On 7/10/07 2:37 PM, "Stephen Barncard" <stephenREVOLUTION at barncard.com>
wrote:

> I'm trying to use revCopyFolder - getting an 'execution error'
> 
> I'm trying to use a URL for the source but no examples are shown in the docs.
> Does this even work with a net URL?  thanks, sqb
> 
> --- code snippet
> 
> put  returnQTMoviesFolder() into destinationFolder
>           put kRootRemoteDir into folderToCopy
>           revCopyFolder folderToCopy,destinationFolder
>           put folderToCopy & return &  destinationFolder & return & the result
> 
> -- end code snippet
> 
> -- output
> 
> http://blah.barncard.com/downloads/qt/
> /Users/blah/Documents/blah/qt
> execution error
> 
> 
> Syntax:
> revCopyFolder folderToCopy,destinationFolder
> 
> Summary:
> Copies a folder with all its contents.
> 
> Examples:
> revCopyFolder "E:/Settings","C:/Program Files/My App/Settings"
> revCopyFolder "data","backups"





More information about the use-livecode mailing list