search for: dir_tree

Displaying 2 results from an estimated 2 matches for "dir_tree".

Did you mean: di_tree
2007 Apr 04
3
foreach loops, iteration, in functions?
...e ability currently exists. I''ve read about the various workarounds and limits on the ''file'' element, when using it to create directory structures (in regards to parent dirs). With that said, I was thinking that it might be helpful to do something such as this: class dir_tree { mkdir { "/var/repo/subdir": owner => root } mkdir { "/var/repo/subdir2": owner => root } mkdir { "/mnt/nas/nas01" } mkdir { "/mnt/nas/nas02" } } define mkdir ($owner => root, $group => root) { for each i in (split(...
2006 Aug 13
2
extremely slow "ls" on a cleared fatty ext3 directory on FC4/5
Hi, A stupid flat directory /tmp holding 5 millon files, the directory locates on a ext3 file system with dir_index feature turned on. The running Linux are FC4 and FC5. The files are just directly under /tmp, not in any subdirectories -- they are results of mis-operations of users. Then a 'ls' or 'find' command will take one hour to finish, a lot of other applications on