Changeset 17718 for trunk/DataStore
- Timestamp:
- May 16, 2008, 10:36:03 AM (18 years ago)
- Location:
- trunk/DataStore
- Files:
-
- 2 edited
-
Changes (modified) (1 diff)
-
scripts/dsget (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/DataStore/Changes
r17649 r17718 2 2 3 3 0.08 4 - change dsget to flush() & sync() downloaded files 4 5 - change ds*ls utilties to always return the HTTP status code - 300 as the 5 6 exit status -
trunk/DataStore/scripts/dsget
r17661 r17718 3 3 # Copyright (C) 2006-2008 Joshua Hoblitt 4 4 # 5 # $Id: dsget,v 1.2 6 2008-05-14 01:47:33 billsExp $5 # $Id: dsget,v 1.27 2008-05-16 20:36:03 jhoblitt Exp $ 6 6 7 7 use strict; … … 172 172 173 173 close($src_fh) or die "can't close file $tmpfilename: $!"; 174 close($fh) or die "can't close nebulous filehandle"; 174 $fh->flush or die "can't flush nebulous filehandle: $!"; 175 $fh->sync or die "can't sync nebulous filehandle: $!"; 176 close($fh) or die "can't close nebulous filehandle: $!"; 175 177 } else { 178 $tmp->flush or die "can't flush filehandle: $!"; 179 $tmp->sync or die "can't sync filehandle: $!"; 176 180 rename $tmpfilename, $filename 177 181 or die "renaming $tmpfilename to $filename failed: $!";
Note:
See TracChangeset
for help on using the changeset viewer.
