nodes: 0, module; 1, function_definition; 2, function_name:getList; 3, parameters; 4, block; 5, identifier:self; 6, identifier:full_path; 7, default_parameter; 8, default_parameter; 9, default_parameter; 10, default_parameter; 11, default_parameter; 12, default_parameter; 13, default_parameter; 14, expression_statement; 15, if_statement; 16, expression_statement; 17, expression_statement; 18, if_statement; 19, identifier:type; 20, integer:1; 21, identifier:dept; 22, integer:0; 23, identifier:sort; 24, string; 25, identifier:order; 26, string; 27, identifier:startnum; 28, integer:0; 29, identifier:pagingrow; 30, integer:1000; 31, identifier:dummy; 32, integer:56184; 33, comment:"""Get a list of files
  
              >>> nd_list = nd.getList('/', type=3)
              >>> print nd_list
  
          There are 5 kinds of ``type``:
              - 1 => only directories with idxfolder property
              - 2 => only files
              - 3 => directories and files with thumbnail info (like viewHeight, viewWidth for Image file)
              - 4 => only directories except idxfolder
              - 5 => directories and files without thumbnail info
  
          There are 5 kindes of ``sort``:
              - file : file type, 종류
              - length : size of file, 크기
              - date : edited date, 수정한 날짜
              - credate : creation date, 올린 날짜
              - protect : protect or not, 중요 표시
  
          :param full_path: The full path to get the file list.
  
          :param type: 1, 2, 3, 4 or 5
  
          :param depth: Dept for file list
  
          :param sort: name => 이름
  
          :param order: Order by (asc, desc)
  
          :return: metadata (list of dict) or False when failed to get list
  
          :metadata:
              - u'copyright': u'N',
              - u'creationdate': u'2013-05-12T21:17:23+09:00',
              - u'filelink': None,
              - u'fileuploadstatus': u'1',
              - u'getcontentlength': 0,
              - u'getlastmodified': u'2014-01-26T12:23:07+09:00',
              - u'href': u'/Codes/',
              - u'lastaccessed': u'2013-05-12T21:17:23+09:00',
              - u'lastmodifieduser': None,
              - u'priority': u'1',
              - u'protect': u'N',
              - u'resourceno': 204041859,
              - u'resourcetype': u'collection',
              - u'sharedinfo': u'F',
              - u'sharemsgcnt': 0,
              - u'shareno': 0,
              - u'subfoldercnt': 5,
              - u'thumbnailpath': u'N',
              - u'virusstatus': u'N'
          """; 34, comparison_operator:type not in range(1, 6); 35, block; 36, assignment; 37, assignment; 38, comparison_operator:s is True; 39, block; 40, else_clause; 41, string_content:name; 42, string_content:asc; 43, identifier:type; 44, call; 45, print_statement; 46, return_statement; 47, identifier:data; 48, dictionary; 49, pattern_list; 50, call; 51, identifier:s; 52, True; 53, return_statement; 54, block; 55, identifier:range; 56, argument_list; 57, string:"Error getList: `type` should be between 1 to 5"; 58, False; 59, pair; 60, pair; 61, pair; 62, pair; 63, pair; 64, pair; 65, pair; 66, pair; 67, pair; 68, pair; 69, identifier:s; 70, identifier:metadata; 71, attribute; 72, argument_list; 73, identifier:metadata; 74, print_statement; 75, return_statement; 76, integer:1; 77, integer:6; 78, string; 79, identifier:full_path; 80, string; 81, identifier:type; 82, string; 83, identifier:dept; 84, string; 85, identifier:sort; 86, string; 87, identifier:order; 88, string; 89, identifier:startnum; 90, string; 91, identifier:pagingrow; 92, string; 93, attribute; 94, string; 95, attribute; 96, string; 97, identifier:dummy; 98, identifier:self; 99, identifier:POST; 100, string; 101, identifier:data; 102, identifier:metadata; 103, False; 104, string_content:orgresource; 105, string_content:type; 106, string_content:dept; 107, string_content:sort; 108, string_content:order; 109, string_content:startnum; 110, string_content:pagingrow; 111, string_content:userid; 112, identifier:self; 113, identifier:user_id; 114, string_content:useridx; 115, identifier:self; 116, identifier:useridx; 117, string_content:dummy; 118, string_content:getList
code: def getList(self, full_path, type = 1, dept = 0, sort = 'name', order = 'asc', startnum = 0, pagingrow = 1000, dummy = 56184):
          """Get a list of files
  
              >>> nd_list = nd.getList('/', type=3)
              >>> print nd_list
  
          There are 5 kinds of ``type``:
              - 1 => only directories with idxfolder property
              - 2 => only files
              - 3 => directories and files with thumbnail info (like viewHeight, viewWidth for Image file)
              - 4 => only directories except idxfolder
              - 5 => directories and files without thumbnail info
  
          There are 5 kindes of ``sort``:
              - file : file type, 종류
              - length : size of file, 크기
              - date : edited date, 수정한 날짜
              - credate : creation date, 올린 날짜
              - protect : protect or not, 중요 표시
  
          :param full_path: The full path to get the file list.
  
          :param type: 1, 2, 3, 4 or 5
  
          :param depth: Dept for file list
  
          :param sort: name => 이름
  
          :param order: Order by (asc, desc)
  
          :return: metadata (list of dict) or False when failed to get list
  
          :metadata:
              - u'copyright': u'N',
              - u'creationdate': u'2013-05-12T21:17:23+09:00',
              - u'filelink': None,
              - u'fileuploadstatus': u'1',
              - u'getcontentlength': 0,
              - u'getlastmodified': u'2014-01-26T12:23:07+09:00',
              - u'href': u'/Codes/',
              - u'lastaccessed': u'2013-05-12T21:17:23+09:00',
              - u'lastmodifieduser': None,
              - u'priority': u'1',
              - u'protect': u'N',
              - u'resourceno': 204041859,
              - u'resourcetype': u'collection',
              - u'sharedinfo': u'F',
              - u'sharemsgcnt': 0,
              - u'shareno': 0,
              - u'subfoldercnt': 5,
              - u'thumbnailpath': u'N',
              - u'virusstatus': u'N'
          """
          if type not in range(1, 6):
              print "Error getList: `type` should be between 1 to 5"
              return False
          data = {'orgresource': full_path,
                  'type': type,
                  'dept': dept,
                  'sort': sort,
                  'order': order,
                  'startnum': startnum,
                  'pagingrow': pagingrow,
                  'userid': self.user_id,
                  'useridx': self.useridx,
                  'dummy': dummy,
                 }
  
          s, metadata = self.POST('getList', data)
  
          if s is True:
              return metadata
          else:
              print metadata
              return False