//temporaryFilePath AND static::$converterCopy ) { /* Make the folder */ $folder = $this->configuration['dir'] . '/' . $this->getFolder(); if( !@\copy( $this->temporaryFilePath, "{$folder}/{$this->filename}" ) ) { \IPS\Log::log( "Could not copy file from {$this->temporaryFilePath} to {$folder}/{$this->filename}" , 'FileSystem' ); throw new \RuntimeException( 'COULD_NOT_COPY_FILE' ); } @chmod( "{$folder}/{$this->filename}", \IPS\IPS_FILE_PERMISSION ); /* Reset temporary file data */ $this->temporaryFilePath = NULL; } parent::save(); } }