public function listContents($directory = '', $recursive = false)
    {
        try {
            return $this->addDirNames($this->doListContents($directory));
        } catch (\Exception $e) {
            return [];
        }
    }