~mwilck/duplicity/duplicity

« back to all changes in this revision

Viewing changes to duplicity/backends/hsibackend.py

  • Committer: Aaron A Whitehouse
  • Date: 2016-07-02 17:12:58 UTC
  • mfrom: (1111 duplicity-src8)
  • mto: This revision was merged to the branch mainline in revision 1113.
  • Revision ID: lists@whitehouse.kiwi.nz-20160702171258-xhnf5v5g542fcfhq
Merge with trunk.

Show diffs side-by-side

added added

removed removed

Lines of Context:
44
44
        self.subprocess_popen(commandline)
45
45
 
46
46
    def _list(self):
 
47
        import sys
47
48
        commandline = '%s "ls -l %s"' % (hsi_command, self.remote_dir)
48
 
        l = os.popen3(commandline)[2].readlines()[3:]
 
49
        l = self.subprocess_popen(commandline)[2]
 
50
        l = l.split(os.linesep)[3:]
49
51
        for i in range(0, len(l)):
50
 
            l[i] = l[i].split()[-1]
 
52
            if l[i]:
 
53
                l[i] = l[i].split()[-1]
51
54
        return [x for x in l if x]
52
55
 
53
56
    def _delete(self, filename):