Talk About Network

Google





Mac > Mac Programmer > Re: hidden file...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 2 of 5 Topic 1038 of 1043
Post > Topic >>

Re: hidden files without dot

by pjb@[EMAIL PROTECTED] (Pascal J. Bourguignon) Sep 19, 2008 at 07:50 AM

see@[EMAIL PROTECTED]
 (Victor Eijkhout) writes:

> This is weird. I have a couple of directories that are hidden in the
> sense that the Finder doesn't show them. (PathFinder does; they look
> dimmed, just like "dotfiles".)
>
> Their permissions are weird: an "ls -l" shows
> drwxrwxr-w@[EMAIL PROTECTED]
 60 Victor /* et cetera */ SomeDirectoryName
>
> I've never seen an at-sign in permissions. And that's not a symbolic
> link: "ls -F" shows them as normal directories.
>
> Does anyone know what I have here?

In HFS, there's a flag to hide items, the 'v' attribute.

[pjb@[EMAIL PROTECTED]
 ~]$ /Developer/Tools/GetFileInfo .
directory: "/Users/pjb"
attributes: avbstclinmedz
created: 04/12/2008 02:01:58
modified: 09/19/2008 07:46:21

You can change it with /Developer/Tools/SetFile

[pjb@[EMAIL PROTECTED]
 ~]$ /Developer/Tools/SetFile --help
Invalid Argument --help (null)
Usage: SetFile [option...] file...
    -a attributes     # attributes (lowercase = 0, uppercase = 1)*
    -c creator        # file creator
    -d date           # creation date (mm/dd/[yy]yy [hh:mm[:ss] [AM |
PM]])*
    -m date           # modification date (mm/dd/[yy]yy [hh:mm[:ss] [AM |
PM]])*
	-P				  # perform action on symlink instead of following it
    -t type           # file type

    Note: The following attributes may be used with the -a option:
        A   Alias file
        B   Bundle
        C   Custom icon*
        D   Desktop*
        E   Hidden extension*
        I   Inited*
        M   Shared (can run multiple times)
        N   No INIT resources
        L   Locked
        S   System (name locked)
        T   Stationery
        V   Invisible*
        Z   Busy*

    Note: Items marked with an asterisk (*) are allowed with folders
    Note: Period (.) represents the current date and time.
    Note: [yy]yy < 100 assumes 21st century, e.g. 20yy

-- 
__Pascal Bourguignon__                     http://www.informatimago.com/

"Indentation! -- I will show you how to indent when I indent your skull!"
 




 5 Posts in Topic:
hidden files without dot
see@[EMAIL PROTECTED] (V  2008-09-18 23:31:13 
Re: hidden files without dot
pjb@[EMAIL PROTECTED] (P  2008-09-19 07:50:24 
Re: hidden files without dot
see@[EMAIL PROTECTED] (V  2008-09-22 12:47:22 
Re: hidden files without dot
Jolly Roger <jollyroge  2008-09-19 09:00:57 
Re: hidden files without dot
see@[EMAIL PROTECTED] (V  2008-09-22 11:46:47 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
localhost-V2008-12-19 Wed Jan 7 19:08:56 PST 2009.