35 if 'SAM_EXPERIMENT' in os.environ:
36 exp = os.environ[
'SAM_EXPERIMENT']
37 samweb = samweb_cli.SAMWebClient(experiment=exp)
39 md = samweb.getMetadata(filenameorid=filename)
50 file_type = md[
'file_type']
54 data_tier = md[
'data_tier']
56 if not file_type
or not group
or not data_tier:
58 'Missing or invalid metadata for file %s.' % filename)
63 if 'FTS_DROPBOX' in os.environ:
64 dropbox_root = os.environ[
'FTS_DROPBOX']
66 dropbox_root =
'/pnfs/sbnd/scratch/sbndpro/dropbox'
67 path =
'%s/%s/%s/%s' % (dropbox_root, file_type, group, data_tier)