class_docstr: Simple class to add base path to relative path
class_docstr_tok: ["Simple","class","to","add","base","path","to","relative","path"]
docstr: Recursively list the files in the data source directory.
  
  Parameters
  ----------
  relative: bool, optional
      If True, path returned are relative to the base path of
      the data source.
  
  Returns
  -------
  file_list: list of strings
      List of the paths of all the files in the data source.
docstr_tok: ["Recursively","list","the","files","in","the","data","source","directory",".","Parameters","--","--","--","--","--","relative",":","bool",",","optional","If","True",",","path","returned","are","relative","to","the","base","path","of","the","data","source",".","Returns","--","--","--","-","file_list",":","list","of","strings","List","of","the","paths","of","all","the","files","in","the","data","source","."]
code: def list_files(self, relative=True):
      """Recursively list the files in the data source directory.
  
      Parameters
      ----------
      relative: bool, optional
          If True, path returned are relative to the base path of
          the data source.
  
      Returns
      -------
      file_list: list of strings
          List of the paths of all the files in the data source.
  
      """
      out_list = list()
      for base, dirs, files in os.walk(self.base_path):
          if relative:
              base = base[len(self.base_path) + 1 :]
          for filename in files:
              out_list.append(pjoin(base, filename))
      return out_list
  
imports: import configparser
  import glob
  import os
  import sys
  from os.path import join
  from packaging.version import Version
  from .environment import get_nipy_system_dir, get_nipy_user_dir
label_desc: Use image node_id 3 for calling the Datasource obj's underlying member method code with example usage: obj.list_files(relative) and returns: out_list