Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# sass (development version)

- Fixed throwing exceptions when running under Emscripten.
- Copy files without inheriting read/write/execute permissions fixing issues when using sass on immutable operating systems.

# sass 0.4.10

Expand Down
4 changes: 2 additions & 2 deletions R/file_cache.R
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ FileCache <- R6::R6Class("FileCache",

cache_file <- private$filename_full_path(key)

if (file.copy(cache_file, outfile, overwrite = overwrite)) {
if (file.copy(cache_file, outfile, overwrite = overwrite, copy.mode = FALSE)) {
private$log(paste0('get: key "', key, '" found and copied to ', outfile))
if (private$evict == "lru"){
Sys.setFileTime(cache_file, Sys.time())
Expand Down Expand Up @@ -264,7 +264,7 @@ FileCache <- R6::R6Class("FileCache",

cache_file <- private$filename_full_path(key)

success <- file.copy(infile, cache_file, overwrite = TRUE)
success <- file.copy(infile, cache_file, overwrite = TRUE, copy.mode = FALSE)
if (success) {
private$log(paste0('set: key "', key, ' from file ', infile))
} else {
Expand Down
3 changes: 2 additions & 1 deletion R/layers.R
Original file line number Diff line number Diff line change
Expand Up @@ -479,7 +479,8 @@ write_file_attachments <- function(file_attachments, output_path) {
dir(src, all.files = TRUE, full.names = TRUE, no.. = TRUE),
dest,
overwrite = TRUE,
recursive = TRUE
recursive = TRUE,
copy.mode = FALSE
)
return(NULL)
}
Expand Down