Code: Select all
def listdir ( path ):
""" listdir(path) -- returns a tuple containing separate lists of directory and file names in given path.
example:
dirs, files = xbmcfs.listdir(path)
"""
xbmc.log( "[xbmcvfs] listdir(%s)" % ( path ), xbmc.LOGDEBUG )
listdir = os.listdir( path )
dirs = [d for d in listdir if os.path.isdir (os.path.join(path, d))]
files = [f for f in listdir if os.path.isfile(os.path.join(path, f))]
return dirs, files
Yeah, midnight here and working on couple of things at the same time, maybe we should call it a day and resume tomorrow
