ftp lib and setting unix permissions

Bill bill at bluewatermaritime.com
Wed Oct 6 12:52:41 EDT 2004


This link: you can check the http://www.soapdog.org/rev/FTPCommander.rev

On explorer (mac) and safari (mac) results in a text file loaded in the
browser window...

On 10/6/04 12:16 PM, "Andre Garzia" <soapdog at mac.com> wrote:

> 
> Frank,
> 
> I just implemented that for FTPCommander stack. You'll have to use
> plain ftp commands, the trick is, since you created the folder/file,
> you probably have a variable with it's path. Do a
> 
> libURLFtpCommand("SITE CHMOD" && theNewPermission &&
> theAbsoluteFilePath)
> 
> this will set the permission, the result should be like "200 ok file
> permissions set"
> you can check the http://www.soapdog.org/rev/FTPCommander.rev and check
> the script for the "Perms" button.
> 
> Cheers
> andre
> 
> 
> 
> On Oct 6, 2004, at 1:10 PM, Frank Leahy wrote:
> 
>> Does anyone know if there's a way to tell the ftp library to
>> automatically set permissions on directories and files it creates?
>> Maybe something like "set ftpLibUnixPermissions to 666"?
>> 
>> The problem is that while you can use "put URL ftp://..." to create a
>> directory or file, it appears you have to use the low level ftp
>> commands to CWD to the directory and set permissions on the
>> directories and files using CHMOD.  Which wouldn't be so hard, except
>> it appears that the ftp lib leaves you at the ftp home directory after
>> creating a directory or file, not in the directory the directory or
>> file was created in.
>> 
>> Thanks,
>> -- Frank
>> 
>> Web Photos Pro: Software for Photo Bloggers and Other Photo Power Users
>> See us on the web at http://www.webphotospro.com/
>> 
>> _______________________________________________
>> use-revolution mailing list
>> use-revolution at lists.runrev.com
>> http://lists.runrev.com/mailman/listinfo/use-revolution
>> 
>> 

            |    |    |
           )_)  )_)  )_)
          )___))___))___)\
         )____)____)_____)\\
       _____|____|____|____\\\__
-------\                   /--------- http://www.bluewatermaritime.com
 ^^^^^ ^^^^^^^^^^^^^^^^^^^^^
  ^^^^      ^^^^     ^^^    ^^
       ^^^^      ^^^

24 hour cell: (787) 378-6190
fax: (787) 809-8426

Blue Water Maritime
P.O. Box 91
Puerto Real, PR 00740





More information about the use-livecode mailing list