Skip to content

Commit

Permalink
scope workaround to Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinushey committed Feb 21, 2024
1 parent 27938ad commit 4b3c63b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions R/files.R
Original file line number Diff line number Diff line change
Expand Up @@ -314,8 +314,10 @@ renv_file_same <- function(source, target) {
# NOTE: we intentionally exclude 'size' for directories, as
# on Windows the 'size' field might be reported as 0 for
# junction points?
if (sinfo$isdir || tinfo$isdir)
sinfo$size <- tinfo$size <- 0L
if (renv_platform_windows()) {
if (sinfo$isdir || tinfo$isdir)
sinfo$size <- tinfo$size <- 0L
}

identical(c(sinfo), c(tinfo))

Expand Down

0 comments on commit 4b3c63b

Please sign in to comment.