better than that is to create a listFiles function such as:

function listFiles pPath
  put the defaultfolder into tCurrentDefaultFolder
  set the defaultfolder to pPath
  get the files
  set the defaultfolder to tCurrentDefaultFolder
  return it
end listFiles

This way, you don't risk overwriting the default folder. Sometimes you want
to list the files somewhere but don't want to change the folder there, this
solves your problems

andre

On Wed, Nov 3, 2010 at 5:12 PM, Mike Bonner <[email protected]> wrote:

> if you set the defaultfolder to the defaultFolder & "/myFolder"
> and then put the files you should be good to go.
>
> delete file takes a path as argument so if you don't want to set the
> default
> folder for that you can specify a relative (based on current default
> folder)
> or absolute path
> delete file "pathtofolder/filetodelete"
> and the result will contain a fail message if the file was not found.
>
> On Wed, Nov 3, 2010 at 12:59 PM, Gregory Lypny
> <[email protected]>wrote:
>
> > Hi everyone,
> >
> > How can I get a simple listing of files in a subfolder named, say,
> myFolder
> > in my public_html directory at On-rev?
> >
> > If I run
> >
> >        put the files
> >
> > I get the list of files in public_html.  Does files() accept a path as a
> > parameter?  Haven't being able to get it to work.  Likewise, how can I
> > delete files in a subfolder using irev scripts?
> >
> > I think my problem is that I'm not specifying paths on the server
> > correctly.
> >
> > Regards,
> >
> > Gregory
> >
> >
> > _______________________________________________
> > use-revolution mailing list
> > [email protected]
> > Please visit this url to subscribe, unsubscribe and manage your
> > subscription preferences:
> > http://lists.runrev.com/mailman/listinfo/use-revolution
> >
> _______________________________________________
> use-revolution mailing list
> [email protected]
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
>



-- 
http://www.andregarzia.com All We Do Is Code.
_______________________________________________
use-revolution mailing list
[email protected]
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution

Reply via email to