Helpviewer/Network/FileReply.py

changeset 5587
ea526b78ee6c
parent 5389
9b1c800daff3
child 5624
cdd346d8858b
equal deleted inserted replaced
5586:0e5421d679e7 5587:ea526b78ee6c
7 Module implementing a network reply class for directory resources. 7 Module implementing a network reply class for directory resources.
8 """ 8 """
9 9
10 from __future__ import unicode_literals 10 from __future__ import unicode_literals
11 try: 11 try:
12 str = unicode 12 str = unicode # __IGNORE_WARNING_M131__
13 except NameError: 13 except NameError:
14 pass 14 pass
15 15
16 from PyQt5.QtCore import Qt, QByteArray, QTimer, QDir, QIODevice, QUrl, QBuffer 16 from PyQt5.QtCore import Qt, QByteArray, QTimer, QDir, QIODevice, QUrl, QBuffer
17 from PyQt5.QtGui import QPixmap 17 from PyQt5.QtGui import QPixmap
189 189
190 def __loadDirectory(self): 190 def __loadDirectory(self):
191 """ 191 """
192 Private slot loading the directory and preparing the listing page. 192 Private slot loading the directory and preparing the listing page.
193 """ 193 """
194 dir = QDir(self.url().toLocalFile()) 194 qdir = QDir(self.url().toLocalFile())
195 dirItems = dir.entryInfoList( 195 dirItems = qdir.entryInfoList(
196 QDir.AllEntries | QDir.Hidden | QDir.NoDotAndDotDot, 196 QDir.AllEntries | QDir.Hidden | QDir.NoDotAndDotDot,
197 QDir.Name | QDir.DirsFirst) 197 QDir.Name | QDir.DirsFirst)
198 198
199 u = self.url() 199 u = self.url()
200 if not u.path().endswith("/"): 200 if not u.path().endswith("/"):

eric ide

mercurial