1*06c3fb27SDimitry Andric STRING_EXTENSION_OUTSIDE(SBFileSpec) 2*06c3fb27SDimitry Andric 3*06c3fb27SDimitry Andric %extend lldb::SBFileSpec { 4*06c3fb27SDimitry Andric #ifdef SWIGPYTHON 5*06c3fb27SDimitry Andric %pythoncode %{ 6*06c3fb27SDimitry Andric fullpath = property(str, None, doc='''A read only property that returns the fullpath as a python string.''') 7*06c3fb27SDimitry Andric basename = property(GetFilename, None, doc='''A read only property that returns the path basename as a python string.''') 8*06c3fb27SDimitry Andric dirname = property(GetDirectory, None, doc='''A read only property that returns the path directory name as a python string.''') 9*06c3fb27SDimitry Andric exists = property(Exists, None, doc='''A read only property that returns a boolean value that indicates if the file exists.''') 10*06c3fb27SDimitry Andric %} 11*06c3fb27SDimitry Andric #endif 12*06c3fb27SDimitry Andric } 13