Skip to content

Commit

Permalink
fix: correct issue w/ integer size values
Browse files Browse the repository at this point in the history
Also add progress bar to sp_dir_info
  • Loading branch information
elipousson committed Nov 8, 2023
1 parent c4df2d0 commit 622268e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions R/sp_dir.R
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ sp_dir_info <- function(path = NULL,
)

if (is_installed("fs")) {
item_list[["size"]] <- fs::as_fs_bytes(item_list[["size"]])
item_list[["size"]] <- fs::as_fs_bytes(as.double(item_list[["size"]]))

item_list[["type"]] <- factor(
vapply(
Expand Down Expand Up @@ -159,10 +159,10 @@ sp_dir_info <- function(path = NULL,
}

dir_item_list <- lapply(
dir_name,
function(x) {
cli::cli_progress_along(dir_name),
function(i) {
sp_dir_info(
x,
dir_name[[i]],
drive = drive,
info = info,
full_names = full_names,
Expand Down

0 comments on commit 622268e

Please sign in to comment.