def get_dirs_in_path(file_path):
 names = os.listdir(file_path)
 result = []
 for name in names:
  full_path = os.path.join(file_path, name)
  if (not os.path.isdir(full_path)):
   continue
  result.append(full_path)
 return result

def get_dirs_in_path ( file_path ) : names = os . listdir ( file_path ) result = [ ] for name in names : full_path = os . path . join ( file_path , name ) if ( not os . path . isdir ( full_path ) ) : continue result . append ( full_path ) return result
retrieve full paths to the directories in the provided file path .