src/Handlers/OkFileHandler.php
/**
     * Deletes the .OK file with the passed name, but only if it is empty.
     *
     * @param string $okFilename The name of the .OK file to delete
     *
     * @return void
     * @throws \TechDivision\Import\Exceptions\OkFileNotEmptyException Is thrown, if the .OK file is NOT empty
     */
Deletes the .OK file with the passed name, but only if it is empty.
@param string $okFilename The name of the .OK file to delete

@return void
@throws \TechDivision\Import\Exceptions\OkFileNotEmptyException Is thrown, if the .OK file is NOT empty
Deletes the . OK file with the passed name but only if it is empty . @param string $okFilename The name of the . OK file to delete @return void @throws \ TechDivision \ Import \ Exceptions \ OkFileNotEmptyException Is thrown if the . OK file is NOT empty
protected function delete(string $okFilename)
    {
        if (filesize($okFilename) === 0) {
            $this->getFilesystemAdapter()->delete($okFilename);
        } else {
            throw new OkFileNotEmptyException(sprintf('Can\'t delete file "%s" because it\'s not empty', $okFilename));
        }
    }
protected function delete ( string $ okFilename ) { if ( filesize ( $ okFilename ) === 0 ) { $ this -> getFilesystemAdapter ( ) -> delete ( $ okFilename ) ; } else { throw new OkFileNotEmptyException ( sprintf ( 'Can\'t delete file "%s" because it\'s not empty' , $ okFilename ) ) ; } }
Deletes the .OK file with the passed name, but only if it is empty.
Deletes the . OK file with the passed name but only if it is empty .
// if the .OK file is empty, delete it