code: function(stat)
  {
  	if(stat)
  	{
  		if(stat.isDirectory)
  		{
  			return stat.isDirectory()
  		}
  		if(stat.type)
  		{
  			if(stat.type=="dir")
  			{
  				return true
  			}
  		}
  	}
  	return false
  }
docs: hax for partial file system implimentations