function eZSetupPrvtAreDirAndFilesWritable($dir) { if (!eZDir::isWriteable($dir)) { return FALSE; } // Check if all files within a given directory are writeable $files = eZDir::findSubitems($dir, 'f'); // find only files, skip dirs and symlinks $fileSeparator = eZSys::fileSeparator(); foreach ($files as $file) { if (!eZFile::isWriteable($dir . $fileSeparator . $file)) { return FALSE; } } return TRUE; }