mirror of
https://github.com/aljazceru/cowrie.git
synced 2026-01-07 08:14:23 +01:00
Move -l option check up
This commit is contained in:
@@ -128,12 +128,13 @@ class fseditCmd(cmd.Cmd):
|
||||
|
||||
longls = False
|
||||
|
||||
if args.startswith('-l'):
|
||||
longls = True
|
||||
args = args[3:]
|
||||
|
||||
if not len(args):
|
||||
path = self.pwd
|
||||
else:
|
||||
if args.startswith('-l'):
|
||||
longls = True
|
||||
args = args[3:]
|
||||
path = resolve_reference(self.pwd, args)
|
||||
|
||||
if exists(self.fs, path) == False:
|
||||
|
||||
Reference in New Issue
Block a user