Re: Path and File Questions for On-Rev

2010-11-04 Thread Gregory Lypny
Thanks Andre, Matthias, and Mike,

All good tips.  I'm using them at this very minute!

Gregory

___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Path and File Questions for On-Rev

2010-11-03 Thread Matthias Rebbe
Gregory

you have just to change the default folder. 


?rev
set the folder to sp112
put the files into tList
replace CR with br in tList
put tList
?

Regards,

Matthias

Am 03.11.2010 um 19:59 schrieb Gregory Lypny:

 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
 use-revolution@lists.runrev.com
 Please visit this url to subscribe, unsubscribe and manage your subscription 
 preferences:
 http://lists.runrev.com/mailman/listinfo/use-revolution

___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Path and File Questions for On-Rev

2010-11-03 Thread Mike Bonner
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
gregory.ly...@videotron.cawrote:

 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
 use-revolution@lists.runrev.com
 Please visit this url to subscribe, unsubscribe and manage your
 subscription preferences:
 http://lists.runrev.com/mailman/listinfo/use-revolution

___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Path and File Questions for On-Rev

2010-11-03 Thread Andre Garzia
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 bonnm...@gmail.com 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
 gregory.ly...@videotron.cawrote:

  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
  use-revolution@lists.runrev.com
  Please visit this url to subscribe, unsubscribe and manage your
  subscription preferences:
  http://lists.runrev.com/mailman/listinfo/use-revolution
 
 ___
 use-revolution mailing list
 use-revolution@lists.runrev.com
 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
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution