Re: dir.create() weirdness

Paul Everitt <paul-+XpZaIz3/[email protected]> Sun, 9 Mar 2003 13:55:15 +0100
Newsgroups gmane.comp.cms.oscom.twingle.devel
Message-ID <[email protected]>
--===============40008072184506149==
Content-Type: multipart/alternative; boundary=Apple-Mail-2-187839228


--Apple-Mail-2-187839228
Content-Transfer-Encoding: 7bit
Content-Type: text/plain;
	charset=US-ASCII;
	format=flowed


I'm looking at file.js and see in the comments:

   permissions;                        attribute gets or sets the files 
permissions

However, this function doesn't seem to appear in the (perhaps old) 
version that I'm looking at.  On the other hand, the "open" function 
takes a second argument that claims it is "aPerms".

The example text on the file.js documentation page shows a method like 
this:

js> f.permissions;
644

Thus, we should have something reasonable to start with on 
investigating.

--Paul

On samedi, mars 8, 2003, at 17:54 Europe/Paris, Christian Stocker wrote:

> Hi
>
> twingledir.create() in twingle/content/twingle.js creates a dir with no
> permissions on linux.
>
> $ ls -ld twingle
> d---------    2 chregu   chregu       4096 Mar  8 17:46 twingle/
>
> I didn't found a way to change permissions with jslib, maybe someone
> else knows how to do that.
>
> chregu
>
> -- 
> christian stocker | bitflux GmbH | schoeneggstrasse 5 | ch-8004 zurich
> phone +41 1 240 56 70 | mobile +41 76 561 88 60 |  fax +41 1 240 56 71
> http://www.bitflux.ch  |  chregu-zfZwwz/hh/[email protected]  |  gnupg-keyid 0x5CE1DECB
>
> _______________________________________________
> Twingle-dev mailing list
> [email protected]
> http://lists.oscom.org/mailman/listinfo.cgi/twingle-dev

--Apple-Mail-2-187839228
Content-Transfer-Encoding: 7bit
Content-Type: text/enriched;
	charset=US-ASCII



I'm looking at file.js and see in the comments:


  permissions;                        attribute gets or sets the files
permissions


However, this function doesn't seem to appear in the (perhaps old)
version that I'm looking at.  On the other hand, the "open" function
takes a second argument that claims it is "aPerms".


The example text on the file.js documentation page shows a method like
this:


<fontfamily><param>Courier</param><bigger>js> f.permissions;

644 


</bigger></fontfamily>Thus, we should have something reasonable to
start with on investigating.


--Paul


On samedi, mars 8, 2003, at 17:54 Europe/Paris, Christian Stocker
wrote:


<excerpt>Hi


twingledir.create() in twingle/content/twingle.js creates a dir with no

permissions on linux.


$ ls -ld twingle

d---------    2 chregu   chregu       4096 Mar  8 17:46 twingle/


I didn't found a way to change permissions with jslib, maybe someone

else knows how to do that.


chregu


-- 

christian stocker | bitflux GmbH | schoeneggstrasse 5 | ch-8004 zurich

phone +41 1 240 56 70 | mobile +41 76 561 88 60 |  fax +41 1 240 56 71

http://www.bitflux.ch  |  chregu-zfZwwz/hh/[email protected]  |  gnupg-keyid 0x5CE1DECB


_______________________________________________

Twingle-dev mailing list

[email protected]

http://lists.oscom.org/mailman/listinfo.cgi/twingle-dev

</excerpt>
--Apple-Mail-2-187839228--


--===============40008072184506149==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
Twingle-dev mailing list
[email protected]
http://lists.oscom.org/mailman/listinfo.cgi/twingle-dev

--===============40008072184506149==--