Apr 17, 2003 #1 kirk124 Programmer Apr 15, 2003 26 US Hi, Is there a way to determine whether a folder or file is a system folder or system file?
Apr 17, 2003 #2 missbarbell Programmer Aug 1, 2001 457 GB print "Its a file!\n" if(-f $path); print "Its a directory!\n" if(-d $path); print "Its a link!\n" if(-l $path); print "Its a socket!\n" if(-S $path); There are many others. See http://www.perldoc.com/perl5.8.0/pod/func/-X.html for more details. Barbie Leader of Birmingham Perl Mongers http://birmingham.pm.org Upvote 0 Downvote
print "Its a file!\n" if(-f $path); print "Its a directory!\n" if(-d $path); print "Its a link!\n" if(-l $path); print "Its a socket!\n" if(-S $path); There are many others. See http://www.perldoc.com/perl5.8.0/pod/func/-X.html for more details. Barbie Leader of Birmingham Perl Mongers http://birmingham.pm.org