Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 11 additions & 8 deletions dreamexplorer/src/DreamExplorerFileList.py
Original file line number Diff line number Diff line change
Expand Up @@ -224,14 +224,17 @@ def buildEntry(self, filename, path, pathFilename=None, isDir=False, isMovie=Fal
# info
if not isDir:
if self.showFiles:
fileInfo = os_lstat(pathFilename)
fileAttrib = oct(stat_stat.S_IMODE(fileInfo.st_mode))
lastModified = strftime("%d.%m.%Y %H:%M:%S",localtime(fileInfo.st_mtime))
fileSize = prettySize(getSize(pathFilename))
isLink = stat_stat.S_ISLNK(fileInfo.st_mode)

if os_path.islink(pathFilename):
realPath = " >> %s" %(os_path.realpath(pathFilename))
try:
fileInfo = os_lstat(pathFilename)
fileAttrib = oct(stat_stat.S_IMODE(fileInfo.st_mode))
lastModified = strftime("%d.%m.%Y %H:%M:%S",localtime(fileInfo.st_mtime))
fileSize = prettySize(getSize(pathFilename))
isLink = stat_stat.S_ISLNK(fileInfo.st_mode)

if os_path.islink(pathFilename):
realPath = " >> %s" %(os_path.realpath(pathFilename))
except OSError:
print("OSError occured")
elif path is not None and filename not in ('<%s>' %(_("List of Storage Devices")), '<%s>' %(_("Parent Directory"))):
try:
fileInfo = os_lstat(path)
Expand Down