|
|
@ -37,7 +37,6 @@ foreach my $user ($a->get_all_by_prop(type=>'user')){ |
|
|
|
my $key = $user->key; |
|
|
|
my $key = $user->key; |
|
|
|
# Skip the user if RecycleBin doesn't exists |
|
|
|
# Skip the user if RecycleBin doesn't exists |
|
|
|
next unless (-d "/home/e-smith/files/users/$key/home/Recycle Bin"); |
|
|
|
next unless (-d "/home/e-smith/files/users/$key/home/Recycle Bin"); |
|
|
|
print "Checking $key\n"; |
|
|
|
|
|
|
|
# Convert retention in seconds |
|
|
|
# Convert retention in seconds |
|
|
|
$retention = 60*60*24*$retention; |
|
|
|
$retention = 60*60*24*$retention; |
|
|
|
finddepth(\&remove, "/home/e-smith/files/users/$key/home/Recycle Bin/"); |
|
|
|
finddepth(\&remove, "/home/e-smith/files/users/$key/home/Recycle Bin/"); |
|
|
|