mirror of
https://github.com/SquidDev-CC/CC-Tweaked
synced 2025-08-03 20:33:58 +00:00
Add Check requested by dan200
This commit is contained in:
parent
1415dd0dae
commit
b8630f739a
@ -6,7 +6,7 @@ end
|
|||||||
|
|
||||||
local sNewDir = shell.resolve( tArgs[1] )
|
local sNewDir = shell.resolve( tArgs[1] )
|
||||||
|
|
||||||
if fs.exists( sNewDir ) then
|
if fs.exists( sNewDir ) and not fs.isDir(sNewDir) then
|
||||||
printError( "Destination exists" )
|
printError( "Destination exists" )
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user