private function createDirectoryIfNotExists($absoluteTargetPath)
    {
        if (File::isDirectory($absoluteTargetPath) && File::isWritable($absoluteTargetPath)) {
            return true;
        }

        try {
            @File::makeDirectory($absoluteTargetPath, 0777, true);

            return true;
        } catch (Exception $e) {
            throw new ImageuploadException($e->getMessage());
        }
    }
private function createDirectoryIfNotExists($absoluteTargetPath)
    {
        if (File::isDirectory($absoluteTargetPath) && File::isWritable($absoluteTargetPath)) {
            return true;
        }

        try {
            @File::makeDirectory($absoluteTargetPath, 0777, true);

            return true;
        } catch (Exception $e) {
            throw new ImageuploadException($e->getMessage());
        }
    }
private function createDirectoryIfNotExists ( $ absoluteTargetPath ) { if ( File :: isDirectory ( $ absoluteTargetPath ) && File :: isWritable ( $ absoluteTargetPath ) ) { return true ; } try { @ File :: makeDirectory ( $ absoluteTargetPath , 0777 , true ) ; return true ; } catch ( Exception $ e ) { throw new ImageuploadException ( $ e -> getMessage ( ) ) ; } }
Check and create directory if not exists.

@access private
@param  string $absoluteTargetPath
@return bool
Check and create directory if not exists .