src/Vatsimphp/Sync/AbstractSync.php
protected function validateFilePath()
    {
        if (file_exists($this->filePath)) {
            if (!is_writable($this->filePath)) {
                throw new RuntimeException(
                    "File '{$this->filePath}' exist but is not writable"
                );
            }
        } else {
            if (!is_writable(dirname($this->filePath))) {
                throw new RuntimeException(
                    "File '{$this->filePath}' is not writable"
                );
            }
        }
    }
protected function validateFilePath()
    {
        if (file_exists($this->filePath)) {
            if (!is_writable($this->filePath)) {
                throw new RuntimeException(
                    "File '{$this->filePath}' exist but is not writable"
                );
            }
        } else {
            if (!is_writable(dirname($this->filePath))) {
                throw new RuntimeException(
                    "File '{$this->filePath}' is not writable"
                );
            }
        }
    }
protected function validateFilePath ( ) { if ( file_exists ( $ this -> filePath ) ) { if ( ! is_writable ( $ this -> filePath ) ) { throw new RuntimeException ( "File '{$this->filePath}' exist but is not writable" ) ; } } else { if ( ! is_writable ( dirname ( $ this -> filePath ) ) ) { throw new RuntimeException ( "File '{$this->filePath}' is not writable" ) ; } } }
Validate filePath.

@throws RuntimeException
Validate filePath .