
local tArgs = { ... }
if #tArgs < 1 then
  error( "Usage: type <path>" )
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( "does not exist" )
end

