Ask a Question related to Mac Programming, Design and Development.

  1. #1

    Default files enumeration

    Hi All,

    I tried to enumated all files under a specific directory (folder) by
    first calling MoreFilesX's FSGetDirectoryItems() then I use
    FSGetCatalogInfo() to parse each individual items.

    The thing I don't understand is I will see some files like
    ".DS_Store", "Desktop DB", and "Desktop DF". I wonder how can I filter
    out those unwanted files. By using the nodeFlags in FSCatalogInfo, I
    can filter out all directory names, however, I don't know those
    unwanted files (".DS_Store", "Desktop DB", and "Desktop DF"). Any
    suggestion? Thanks!
    wes Guest

  2. Similar Questions and Discussions

    1. HtmlTextWriterStyle enumeration does not contain most of the available CSS properties
      I was using the HtmlTextWriter class, and I noticed that the HtmlTextWriterStyle enumeration contains very few of the available CSS properties. The...
    2. help with UserControl and enumeration in VB.NET
      Hello all, I've got limited experience with VB.NET, so please bear with me... I have a user control that has an Enumeration, "renderMode" which...
    3. Enumeration in Component
      I am using C# in Visual Studio to develop my own component. I inherited from System.ComponentModel.Component. I added a public variable that is a...
    4. Databinding to a collection with a enumeration property
      I have a class that has properties; "value","description" and "type". The first two are string properties, but "type" is a enum type. I create the...
    5. WebControls enumeration
      Is there enumeration for the WebControls? Thanks.
  3. #2

    Default Re: files enumeration

    In article <5fb7ca71.0309091658.588f2a2f@posting.google.com >,
    [email]wkung@hotmail.com[/email] (wes) wrote:
    > The thing I don't understand is I will see some files like
    > ".DS_Store", "Desktop DB", and "Desktop DF". I wonder how can I filter
    > out those unwanted files. By using the nodeFlags in FSCatalogInfo, I
    > can filter out all directory names, however, I don't know those
    > unwanted files (".DS_Store", "Desktop DB", and "Desktop DF"). Any
    > suggestion? Thanks!
    Well, you didn't really explain what it is that you don't want. Is it invisible
    files?

    meeroh

    --
    If this message helped you, consider buying an item
    from my wish list: <http://web.meeroh.org/wishlist>

    Miro Jurisic Guest

  4. #3

    Default Re: files enumeration

    Miro Jurisic <macdev@meeroh.org> wrote in message news:<macdev-3B9AE7.00162310092003@senator-bedfellow.mit.edu>...
    > In article <5fb7ca71.0309091658.588f2a2f@posting.google.com >,
    > [email]wkung@hotmail.com[/email] (wes) wrote:
    >
    > > The thing I don't understand is I will see some files like
    > > ".DS_Store", "Desktop DB", and "Desktop DF". I wonder how can I filter
    > > out those unwanted files. By using the nodeFlags in FSCatalogInfo, I
    > > can filter out all directory names, however, I don't know those
    > > unwanted files (".DS_Store", "Desktop DB", and "Desktop DF"). Any
    > > suggestion? Thanks!
    >
    > Well, you didn't really explain what it is that you don't want. Is it invisible
    > files?
    >
    > meeroh
    Yes, I don't want those invisible files.
    wes Guest

  5. #4

    Default Re: files enumeration

    In article <5fb7ca71.0309101055.4dd10d44@posting.google.com >,
    [email]wkung@hotmail.com[/email] (wes) wrote:
    > Miro Jurisic <macdev@meeroh.org> wrote in message
    > news:<macdev-3B9AE7.00162310092003@senator-bedfellow.mit.edu>...
    > > In article <5fb7ca71.0309091658.588f2a2f@posting.google.com >,
    > > [email]wkung@hotmail.com[/email] (wes) wrote:
    > >
    > > > The thing I don't understand is I will see some files like
    > > > ".DS_Store", "Desktop DB", and "Desktop DF". I wonder how can I filter
    > > > out those unwanted files. By using the nodeFlags in FSCatalogInfo, I
    > > > can filter out all directory names, however, I don't know those
    > > > unwanted files (".DS_Store", "Desktop DB", and "Desktop DF"). Any
    > > > suggestion? Thanks!
    > >
    > > Well, you didn't really explain what it is that you don't want. Is it
    > > invisible
    > > files?
    >
    > Yes, I don't want those invisible files.
    You should treat a file as hidden if:

    1. The hidden bit is set in its Finder info in its catalog info; or
    2. The name of the file starts with a '.'; or
    3. The file is in / and its name is one of the names listed in /.hidden

    hth

    meeroh

    --
    If this message helped you, consider buying an item
    from my wish list: <http://web.meeroh.org/wishlist>

    Miro Jurisic Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139