Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"

[project]
name = "rda_python_dsarch"
version = "2.0.15"
version = "2.0.16"
authors = [
{ name="Zaihua Ji", email="zji@ucar.edu" },
]
Expand Down
2 changes: 1 addition & 1 deletion src/rda_python_dsarch/dsarch.py
Original file line number Diff line number Diff line change
Expand Up @@ -2645,7 +2645,7 @@ def set_one_webfile(self, i, pgrec, file, flds, type, info=None, ndsid=None, sac
if 'RO' in self.params and 'DO' in self.params:
self.params['DO'][i] = self.get_next_disp_order(dsid, gindex)
record = self.build_record(flds, pgrec, tname, i)
if pgrec and (pgrec['status'] == 'D' or self.PGOPT['ACTS']&self.OPTS['AW'][0]):
if pgrec and (pgrec['status'] == 'D' or 'WS' in self.params or self.PGOPT['ACTS']&self.OPTS['AW'][0]):
record['uid'] = self.PGOPT['UID']
if not (info and info['date_modified']):
info = self.check_local_file(self.get_web_path(i, file, 1, type),
Comment on lines +2648 to 2651
Expand Down
6 changes: 6 additions & 0 deletions src/rda_python_dsarch/dsarch.usg
Original file line number Diff line number Diff line change
Expand Up @@ -866,6 +866,8 @@ d260001-G2: DS-552780725 DC-522 WC-522 SS-465789806 SC-51
processing, used with -GX (-GatherXML)
-(SC|SetChecksum) - computes MD5 checksums for files on the GDEX
Server and saves them to GDEXDB
-(WS|WithFileSize) - gathers file size information for Web files on the GDEX
Server and saves them to GDEXDB

Web file names must be provided via -WF (-WebFile) unless -ON
(-OrderNames) is used to reorder files. The number of values supplied
Expand Down Expand Up @@ -1878,6 +1880,10 @@ behavior.
(-GetDataset), the counts are calculated on the fly and included
in the output.

-WS or -WithFileSize, rechecks Web file sizes and timestamps for
provided web files with -WF (-WebFile), and updates them into GDEXDB
This Mode option works with action -SW (SetWebFile) only.

-XC or -CrossCopy, used with -AW or -AS to fill gaps in storage:
copies files from Glade disk to bOreas (or vice versa) wherever
copies are missing.
Expand Down
1 change: 1 addition & 0 deletions src/rda_python_dsarch/pg_arch.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,7 @@ def __init__(self):
'WC' : [0, 'WithChecksum', 0],
'WM' : [0, 'WithMetadata', 3],
'WN' : [0, 'WithFileNumber',3],
'WS' : [0, 'WithFileSize', 3],
'XC' : [0, 'CrossCopy', 1],
'XM' : [0, 'CrossMove', 1],
'ZD' : [0, 'ZipData', 3],
Expand Down
Loading