docs: def get_core_name_without_suffix(file_path):
          # type: (AnyStr) -> AnyStr
          """Return core file name without suffix.
  
          Examples:
              >>> FileClass.get_core_name_without_suffix(r'/home/zhulj/1990.01.30/test.01.tif')
              'test.01'
              >>> FileClass.get_core_name_without_suffix(r'C:\zhulj\igsnrr\lreis.txt')
              'lreis'
              >>> FileClass.get_core_name_without_suffix(r'C:\\zhulj\\igsnrr\\lreis.txt')
              'lreis'
              >>> FileClass.get_core_name_without_suffix(r'C:/zhulj/igsnrr/lreis.txt')
              'lreis'
              >>> FileClass.get_core_name_without_suffix(r'/home/zhulj/dta/taudem/aread8')
              'aread8'
              >>> FileClass.get_core_name_without_suffix('singlename')
              'singlename'
              >>> FileClass.get_core_name_without_suffix('singlename.txt')
              'singlename'
          """
          if '\\' in file_path:
              file_path = file_path.replace('\\', '/')
          file_name = os.path.basename(file_path)
          core_names = file_name.split('.')
          if len(core_names) > 1:
              core_names = core_names[:-1]
          if isinstance(core_names, list):
              return str('.'.join(core_names))
          else:
              return str(core_names)