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'

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