Documentation
getParent
usage
folder parent = file->getParent()
retourne
the directory where the file is located.
exemples
include('../Kernel/common/file.class.php');
$file = new File('/media/picture1.jpg');
echo $file->getPath(); // /media/picture1.jpg
$folder = $file->getParent();
echo $folder->getPath(); // /media/