Skip to content

Commit

Permalink
Merge branch 'tidy_unzip_directory' of https://github.com/burnsal/use…
Browse files Browse the repository at this point in the history
…this into tidy_unzip_directory
  • Loading branch information
AmiraBurns - USDA authored and AmiraBurns - USDA committed Mar 12, 2024
2 parents acc7f0c + 3eae5e7 commit 2719697
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/course.R
Original file line number Diff line number Diff line change
Expand Up @@ -529,7 +529,7 @@ top_directory <- function(filenames) {
in_top <- path_dir(filenames) == "."
unique_top <- unique(filenames[in_top])
is_directory <- grepl("/$", unique_top)
if(length(unique(path_dir(filenames)))==1 & length(unique_top) == 0){
if (length(unique(path_dir(filenames))) == 1 && length(unique_top) == 0) {
unique_top <- unique(path_dir(filenames))
} else {
if (length(unique_top) > 1 || !is_directory) {
Expand Down

0 comments on commit 2719697

Please sign in to comment.