22 |
|
def exists(target): |
23 |
|
if re.search('/castor/cern.ch/',target): |
24 |
|
debugPrint(' Identified a castor directory: ' + target) |
25 |
< |
cmd = 'rfdir ' + target + '\>\& /dev/null' |
25 |
> |
cmd = 'rfdir ' + target |
26 |
|
elif re.search('/pnfs/cmsaf.mit.edu/',target): |
27 |
|
debugPrint(' Identified a tier-2 directory: ' + target) |
28 |
|
cmd = 'ssh paus@cgate.mit.edu ls -1 ' + target + '\>\& /dev/null' |
29 |
|
else: |
30 |
|
debugPrint(' Identified a normal directory: ' + target) |
31 |
< |
cmd = 'ls -1 ' + target + '\>\& /dev/null' |
31 |
> |
cmd = 'ls -1 ' + target + '>& /dev/null' |
32 |
|
|
33 |
|
status = os.system(cmd) |
34 |
|
debugPrint(' Status: %d' % status) |