Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to get the full path from a GFile
#4
Maybe this helps you:

Code:
# filename howto:
#  import os.path
#  dirname = '/foo/bar'
#  filename = 'abc.txt'
#  os.path.join(dirname, filename)

file = os.path.join(dir, filename)

# Convert filename to GFile
gfile = Gio.File.new_for_path(file)
Reply


Messages In This Thread
RE: How to get the full path from a GFile - by MrsP-from-C - 3 hours ago

Forum Jump: