When using GIO and GVFS, how do I best get the directory name of a GFile object? There is a get_basename() function but no get_dirname().
The function should work for remote URIs as well. Also, it should be available in Python.
When using GIO and GVFS, how do I best get the directory name of a GFile object? There is a get_basename() function but no get_dirname().
The function should work for remote URIs as well. Also, it should be available in Python.
Take a look at this: http://docs.python.org/library/os.path.html. There is a dirname function which might help. Dont know if it will work for remote URIs as well. Just try it out.