Recursively Collect Files

Ask a Question related to Coldfusion - Advanced Techniques, Design and Development.

  1. #1

    Default Recursively Collect Files

    Does anyone have experience with recursion in ColdFusion? I have a directory
    of files that has a bunch of subdirectories that have subdirectories and files
    in them. I need to get all the files databased, but I want to store the
    directory structure with them. Is there some script someone has that will
    allow me to do this? It basically needs to find all the subdirectories, open
    them up one by one, collect the files and put them in a database, then open the
    next subdirectory, etc, until done. Any help would be very very greatly
    appreciated.

    Abs0 Guest

  2. Similar Questions and Discussions

    1. How to move files and dirs recursively?
      Is there a custom tag or such to allow me to perform file and directory moves? The cffile tag only moves a file at a time. I need to be able to...
    2. Need help with recursively getting data from database
      Hello all, I'm trying to make a simple database that stores notes in categories. Notes can have multiple categories and categories can have other...
    3. Opening file units recursively
      I have an application that reads a list of pathnames, and the list can contain "include" lines each of which specifies the path of a file to go off...
    4. How to list files recursively?
      Hi NG, I am looking for a way to list files *recursively* from a given directory. Are there *builtin*-functions, that handle this? Thanks,...
    5. OT: How to recursively call a script?
      OT: How to recursively call a script? I've got a Solaris box, and I need to remotely restart the ssh daemon. On Debian, most init scripts...
  3. #2

    Default Re: Recursively Collect Files

    Hi, I can help you out. Email me at [email]dan@digital-crew.com[/email]?subject=refMF The
    easiest way is to write a custom tag that takes a folder as an attribute. In
    the custom tag, do a cfdirectory list and if not empty, make a call to the same
    tag, therefore creating your recursive nature. Regards, Dan.

    Dan-CFTagStore.com 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