OLD | NEW |
1 # -*- coding: utf-8 -*- | 1 # -*- coding: utf-8 -*- |
2 """The root only file system file entry implementation.""" | 2 """The root only file system file entry implementation.""" |
3 | 3 |
| 4 from __future__ import unicode_literals |
| 5 |
4 from dfvfs.vfs import file_entry | 6 from dfvfs.vfs import file_entry |
5 | 7 |
6 | 8 |
7 class RootOnlyFileEntry(file_entry.FileEntry): | 9 class RootOnlyFileEntry(file_entry.FileEntry): |
8 """Root only file system file entry.""" | 10 """Root only file system file entry.""" |
9 | 11 |
10 def _GetDirectory(self): | 12 def _GetDirectory(self): |
11 """Retrieves a directory. | 13 """Retrieves a directory. |
12 | 14 |
13 Returns: | 15 Returns: |
14 Directory: a directory or None if not available. | 16 Directory: a directory or None if not available. |
15 """ | 17 """ |
16 return | 18 return |
17 | 19 |
18 @property | 20 @property |
19 def name(self): | 21 def name(self): |
20 """str: name of the file entry, without the full path.""" | 22 """str: name of the file entry, without the full path.""" |
21 return u'' | 23 return '' |
22 | 24 |
23 @property | 25 @property |
24 def sub_file_entries(self): | 26 def sub_file_entries(self): |
25 """generator[FileEntry]: sub file entries.""" | 27 """generator[FileEntry]: sub file entries.""" |
26 return iter(()) | 28 return iter(()) |
OLD | NEW |