mirror of
https://github.com/aljazceru/cowrie.git
synced 2025-12-28 11:24:20 +01:00
getfile can return False
This commit is contained in:
@@ -254,7 +254,7 @@ class HoneyPotFilesystem(object):
|
||||
dir = self.getfile(path)
|
||||
except:
|
||||
dir = None
|
||||
if dir is None:
|
||||
if dir is None or dir is False:
|
||||
return False
|
||||
if dir[A_TYPE] == T_DIR:
|
||||
return True
|
||||
|
||||
Reference in New Issue
Block a user