/** * This function returns true if a given path is a readable. * * @param $path The path. * * @returns True if it's readable, false otherwise. */ function isReadable($path) { $dir = new YDFSDirectory($path); return $dir->isReadable(); }