opensourcer has asked for the wisdom of the Perl Monks concerning the following question:
it says Can't cd to (/rootdata/) lost+found: Permission denied at search.pl line 6 myscripts i have rwe permissions on /rootdata, may be it's not able to access the lost+found or what ever folder, how do i skip those folder, that i don't have permission and how do i display list of files and folder using File::Find, i know without using the File::Find module#!/usr/local/perl -w use File::Find; use strict; &find(\&wanted, '/rootdata'); sub wanted { /^myscripts$/ && print("$_\n");
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Skipping unreadable directories with File::Find (or how to test your code)
by jeffa (Bishop) on May 26, 2005 at 18:44 UTC | |
by opensourcer (Monk) on May 27, 2005 at 05:43 UTC | |
|
Re: Skipping unreadable directories with File::Find
by bmann (Priest) on May 26, 2005 at 18:48 UTC |