Skip to content

Commit

Permalink
3rd #63 keeping the long pathnames using shQuote
Browse files Browse the repository at this point in the history
  • Loading branch information
gisma committed Apr 23, 2024
1 parent 6233c21 commit 41c1e55
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/gdalControls.R
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ searchGDALW <- function(DL = "C:",

DL = gsub("\\\\", "/", DL)
DL = gsub("/", "\\\\", DL)
DL = utils::shortPathName(DL)
DL = shQuote(DL)
options(show.error.messages = FALSE)
options(warn=-1)
raw_GDAL <- try(system(paste0("cmd.exe /c dir /B /S ",DL,"gdalinfo.exe"),intern=TRUE))
Expand Down

0 comments on commit 41c1e55

Please sign in to comment.