From: Manfred Lotz Date: 2003-12-01T15:12:08+09:00 Subject: Re: File::Stat and file flags Hi, On Mon, 01 Dec 2003 13:14:13 +0900, nobu.nokada wrote: > Hi, > > At Sun, 30 Nov 2003 18:47:09 +0900, > Manfred Lotz wrote: >> In the UFS file system of FreeBSD a file can have special flags. > > What flags? > arch the archived flag (super-user only) opaque the opaque flag (owner or super-user only) nodump the nodump flag (owner or super-user only) sappnd the system append-only flag (super-user only) schg the system immutable flag (super-user only) sunlnk the system undeletable flag (super-user only) uappnd the user append-only flag (owner or super-user only) uchg the user immutable flag (owner or super-user only) uunlnk the user undeletable flag (owner or super-user only) Putting the letters ``no'' before or removing the letters ``no'' from a keyword causes the flag to be cleared. >> Is there any way to retrieve those flags within Ruby? I looked for >> File::Stat.flags? and File::Stat.flags. However it doesn't exist. > > What you want may be File::Stat#mode. No. See above. Manfred