mirror of
https://github.com/SquidDev-CC/CC-Tweaked
synced 2025-09-02 02:27:56 +00:00
Add Check requested by dan200
This commit is contained in:

committed by
GitHub

parent
1415dd0dae
commit
b8630f739a
@@ -6,7 +6,7 @@ end
|
||||
|
||||
local sNewDir = shell.resolve( tArgs[1] )
|
||||
|
||||
if fs.exists( sNewDir ) then
|
||||
if fs.exists( sNewDir ) and not fs.isDir(sNewDir) then
|
||||
printError( "Destination exists" )
|
||||
return
|
||||
end
|
||||
|
Reference in New Issue
Block a user