mirror of
https://github.com/SquidDev-CC/CC-Tweaked
synced 2024-06-26 07:03:22 +00:00
5e462adc5c
- textures/{block,item}s -> textures/{block,item} - assets/*/{advancements,lua,recipes} -> data/*/...
19 lines
297 B
Lua
19 lines
297 B
Lua
|
|
local tArgs = { ... }
|
|
if #tArgs < 1 then
|
|
print( "Usage: type <path>" )
|
|
return
|
|
end
|
|
|
|
local sPath = shell.resolve( tArgs[1] )
|
|
if fs.exists( sPath ) then
|
|
if fs.isDir( sPath ) then
|
|
print( "directory" )
|
|
else
|
|
print( "file" )
|
|
end
|
|
else
|
|
print( "No such path" )
|
|
end
|
|
|