Skip to content

Commit

Permalink
Adding path facility path (#42)
Browse files Browse the repository at this point in the history
  • Loading branch information
djw8605 authored Nov 29, 2023
1 parent 44bf230 commit 6de4cf6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Collectors/DetailedCollector.py
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,9 @@ def addRecord(self, sid, userID, fileClose, timestamp, addr, openTime, fileToClo
# - /ospool/uc-shared/public/[PROJECT]
elif fname.startswith('/ospool'):
rec['logical_dirname'] = "/".join(fname.split('/', 5)[:5])
# /path-facility/data/[USERNAME]
elif fname.startswith('/path-facility'):
rec['logical_dirname'] = "/".join(fname.split('/', 4)[:4])
elif fname.startswith('/hcc'):
rec['logical_dirname'] = "/".join(fname.split('/', 6)[:6])
elif fname.startswith('/pnfs/fnal.gov/usr'):
Expand Down

0 comments on commit 6de4cf6

Please sign in to comment.