Skip to content

Commit 622e950

Browse files
nmdefrieskrivard
andauthored
clean up files between rollup runs
Co-authored-by: Katie Mazaitis <krivard@cs.cmu.edu>
1 parent 93309fb commit 622e950

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

facebook/micro/monthly-archive.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ perform_rollup_and_post ()
2121
Rscript ../monthly-files.R ${MONTH%_*} ${R_MONTH} . >${OUT}.csv
2222
gzip ${OUT}.csv
2323
sftp -b <(echo -e "cd $1\nput ${OUT}.csv.gz") -P 2222 fb-automation@ftp.delphi.cmu.edu
24+
rm -rf $1
25+
mkdir $1
26+
mv *.gz $1/
2427
}
2528

2629
perform_rollup_and_post "fb-public-results"

0 commit comments

Comments
 (0)