Ext.define('FileRun.store.FileList', {
	extend: 'Ext.data.Store',
	config: {
		model: 'FileRun.model.File',
		proxy: {
			type: 'ajax',
			url: '../?module=fileman&section=touch&page=browse&itemType=any&details[]=icon&details[]=nicerFileSize&details[]=mdate&details[]=cdate&details[]=description&details[]=ext&details[]=weblink-full&details[]=hasThumb&details[]=isBTSShared&details[]=label',
			actionMethods: {'read': 'POST'},
			reader: {type: 'json', rootProperty: 'data.files'}
		},
		sorters: [
			{
				property : 'is_dir',
				direction: 'DESC'
			},
			{
				property : 'filename',
				direction: 'ASC'
			}
		]
	}
});