Skip to content

Commit

Permalink
fix(server): #304 Delete data after importing from URL
Browse files Browse the repository at this point in the history
  • Loading branch information
tmelliott committed Dec 19, 2023
1 parent 64fffe7 commit ed44fe6
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion functions.R
Original file line number Diff line number Diff line change
Expand Up @@ -1861,7 +1861,11 @@ get.data.from.URL <- function(URL, data.dir.import) {
print(e)
}, warning = function(w) {
print(w)
}, finally = {})
}, finally = {
if (file.exists(paste0(data.dir.import, "/Imported/", name))) {
unlink(paste0(data.dir.import, "/Imported/", name))
}
})
}

get.data.name.from.URL <- function(URL) {
Expand Down

0 comments on commit ed44fe6

Please sign in to comment.