Skip to content

Commit

Permalink
ahs zip ZIP Zip
Browse files Browse the repository at this point in the history
  • Loading branch information
ajdamico committed Jul 25, 2014
1 parent 91a770c commit 18c1e21
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions American Housing Survey/download all microdata.R
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ for ( curdir in rev( precise.links ) ){
precise.files <- gsub('(.*) (.*)' , '\\2' , ftp.contents )

# look for exact matches, only zipped.
pfi <- gsub( '.zip' , '' , precise.files )
pfi <- gsub( '\\.zip|\\.Zip|\\.ZIP' , '' , precise.files )

# these files match a `.zip` file
zip.matches <- pfi[ duplicated( pfi ) ]
Expand Down Expand Up @@ -212,7 +212,7 @@ for ( curdir in rev( precise.links ) ){
previous.tf <- NULL

# if the file is a zipped file..
if ( extension %in% 'zip' ){
if ( tolower( extension ) %in% 'zip' ){

# unzip it to the temporary directory,
# overwriting the single file's filepath
Expand Down

0 comments on commit 18c1e21

Please sign in to comment.