Professional Web Applications Themes

files enumeration - Mac Programming

Hi All, I tried to enumated all files under a specific directory (folder) by first calling MoreFilesX's FSGetDirectoryItems() then I use FSGetCatalogInfo() to p 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!...

  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 p 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. #2

    Default Re: files enumeration

    In article <5fb7ca71.0309091658.588f2a2fposting.google.com >,
    [email]wkunghotmail.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

  3. #3

    Default Re: files enumeration

    Miro Jurisic <macdevmeeroh.org> wrote in message news:<macdev-3B9AE7.00162310092003senator-bedfellow.mit.edu>...
    > In article <5fb7ca71.0309091658.588f2a2fposting.google.com >,
    > [email]wkunghotmail.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

  4. #4

    Default Re: files enumeration

    In article <5fb7ca71.0309101055.4dd10d44posting.google.com >,
    [email]wkunghotmail.com[/email] (wes) wrote:
    > Miro Jurisic <macdevmeeroh.org> wrote in message
    > news:<macdev-3B9AE7.00162310092003senator-bedfellow.mit.edu>...
    > > In article <5fb7ca71.0309091658.588f2a2fposting.google.com >,
    > > [email]wkunghotmail.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

Similar Threads

  1. Collection was modified; enumeration operation may
    By Atif Sarfraz in forum ASP.NET Building Controls
    Replies: 0
    Last Post: December 1st, 09:39 PM
  2. Replies: 1
    Last Post: October 9th, 12:26 PM
  3. help with UserControl and enumeration in VB.NET
    By Brandon Taylor in forum Dreamweaver AppDev
    Replies: 0
    Last Post: May 6th, 04:09 PM
  4. Enumeration in Component
    By ThomasWG in forum ASP.NET Building Controls
    Replies: 0
    Last Post: September 15th, 11:21 PM
  5. WebControls enumeration
    By Vik in forum ASP.NET General
    Replies: 4
    Last Post: July 16th, 01:52 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not 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