s = stat($path);
$name  = s["name"];
$isdir = s["isdir"];
