Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 172552 | Differences between
and this patch

Collapse All | Expand All

(-)conduit~/conduit/platform/FileGio.py (-2 / +5 lines)
Lines 1-4 Link Here
1
import gio
1
import gio
2
import urllib
2
3
3
import conduit.platform
4
import conduit.platform
4
5
Lines 200-205 Link Here
200
        #if not relative, return abs path
201
        #if not relative, return abs path
201
        if not res:
202
        if not res:
202
            res = toURI
203
            res = toURI
204
        else:
205
            res = urllib.quote(res)
203
        return res
206
        return res
204
207
205
    @staticmethod
208
    @staticmethod
Lines 353-362 Link Here
353
                    if filetype == gio.FILE_TYPE_DIRECTORY:
356
                    if filetype == gio.FILE_TYPE_DIRECTORY:
354
                        #Include hidden directories
357
                        #Include hidden directories
355
                        if not hidden or self.includeHidden:
358
                        if not hidden or self.includeHidden:
356
                            self.dirs.append(dir+"/"+filename)
359
                            self.dirs.append(dir+"/"+urllib.quote(filename))
357
                            t += 1
360
                            t += 1
358
                    elif filetype == gio.FILE_TYPE_REGULAR or (filetype == gio.FILE_TYPE_SYMBOLIC_LINK and self.followSymlinks):
361
                    elif filetype == gio.FILE_TYPE_REGULAR or (filetype == gio.FILE_TYPE_SYMBOLIC_LINK and self.followSymlinks):
359
                            uri = dir+"/"+filename
362
                            uri = dir+"/"+urllib.quote(filename)
360
                            #Include hidden files
363
                            #Include hidden files
361
                            if not hidden or self.includeHidden:
364
                            if not hidden or self.includeHidden:
362
                                self.URIs.append(uri)
365
                                self.URIs.append(uri)

Return to bug 172552