os.listdir with full path code example Example: python windows os.listdir path usage yourobject = os.listdir('C:\\Users\\test\\files')