Pimcore\Model\Asset::deletePhysicalFile PHP Method

deletePhysicalFile() protected method

Deletes file from filesystem
protected deletePhysicalFile ( )
    protected function deletePhysicalFile()
    {
        $fsPath = $this->getFileSystemPath();
        if ($this->getType() != "folder") {
            if (is_file($fsPath) && is_writable($fsPath)) {
                unlink($fsPath);
            }
        } else {
            if (is_dir($fsPath) && is_writable($fsPath)) {
                recursiveDelete($fsPath, true);
            }
        }
    }