[kupfer: 4/27] archiveinside: Always show hidden files in the archive's first level
- From: Ulrik Sverdrup <usverdrup src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [kupfer: 4/27] archiveinside: Always show hidden files in the archive's first level
- Date: Tue, 16 Feb 2010 20:47:27 +0000 (UTC)
commit 99e8d4426a7e40c6b28fc479d31d580ee4e6b0fd
Author: Ulrik Sverdrup <ulrik sverdrup gmail com>
Date: Fri Jan 22 17:36:14 2010 +0100
archiveinside: Always show hidden files in the archive's first level
We can't influence hidden files in more than the first level, but
there we choose to show them.
kupfer/plugin/archiveinside.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/kupfer/plugin/archiveinside.py b/kupfer/plugin/archiveinside.py
index 7d47e72..c40f3ed 100644
--- a/kupfer/plugin/archiveinside.py
+++ b/kupfer/plugin/archiveinside.py
@@ -45,7 +45,7 @@ class ArchiveContent (Source):
zf = tarfile.TarFile.gzopen(self.path)
zf.extractall(path=pth)
self._unarchived_files.append(zf)
- files = list(DirectorySource(pth).get_leaves())
+ files = list(DirectorySource(pth, show_hidden=True).get_leaves())
if len(files) == 1 and files[0].has_content():
return files[0].content_source().get_leaves()
return files
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]