Skip to content

Commit

Permalink
filezilla path updated
Browse files Browse the repository at this point in the history
  • Loading branch information
AlessandroZ committed Mar 21, 2017
1 parent 532eb6a commit 89c6b01
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions Linux/lazagne/softwares/sysadmin/filezilla.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,15 @@ def __init__(self):
options = {'command': '-f', 'action': 'store_true', 'dest': 'filezilla', 'help': 'filezilla'}
ModuleInfo.__init__(self, 'filezilla', 'sysadmin', options)

def run(self, software_name = None):
directory = '~/.filezilla'
directory = os.path.expanduser(directory)

def run(self, software_name = None):
directories = ['~/.filezilla', '~/.config/filezilla']
for directory in directories:
directory = os.path.expanduser(directory)
if os.path.isdir(directory):
break
else:
print_debug('INFO', 'Filezilla not installed.')

interesting_xml_file = []
info_xml_file = []
if os.path.exists(os.path.join(directory, 'sitemanager.xml')):
Expand Down Expand Up @@ -71,7 +76,4 @@ def run(self, software_name = None):
if len(values) != 0:
pwdFound.append(values)
return pwdFound
else:
print_debug('INFO', 'Filezilla not installed.')


0 comments on commit 89c6b01

Please sign in to comment.