var result = M.file.create({
	'type': 'DIR',
	'path': 'doc://temp'
});

M.tool.log(result);
alert(JSON.stringify(result));
var result = M.file.create({
	type: 'FILE',
	path: 'doc://temp/hello.txt'
});

M.tool.log(result);
alert(JSON.stringify(result));
M.file.write({
	path: 'doc://temp/hello.txt',
	data: '안녕하세요.'
}, function(result){
	M.tool.log(result);
	alert(JSON.stringify(result));
});
M.file.read({
	path: 'doc://temp/hello.txt'
}, function(result){
	M.tool.log(result);
	alert(JSON.stringify(result));
});
M.file.copy({
	type: 'FILE',
	source: 'doc://temp/hello.txt',
	destination: 'doc://temp/hello1.txt',
	progress: function(total, current, setting ){
		M.tool.log(total, current);
	}
}, function(result){
	M.tool.log(result);
	alert(JSON.stringify(result));
});
M.file.move({
	type: 'FILE',
	source: 'doc://temp/hello1.txt',
	destination: 'doc://temp/hello2.txt',
	progress: function(total, current, setting ){
		M.tool.log(total, current);
	}
}, function(result){
	M.tool.log(result);
	alert(JSON.stringify(result));
});
var result = M.file.info({
	type: 'FILE',
	path: 'doc://temp/hello.txt'
});

M.tool.log(result);
alert(JSON.stringify(result));
var result = M.file.info({
	path: 'doc://temp/'
});

M.tool.log(result);
alert(JSON.stringify(result));
var result = M.file.remove({
	type: 'FILE',
	path: 'doc://temp/hello.txt'
});

M.tool.log(result);
alert(JSON.stringify(result));
var result = M.file.remove({
	type: 'DIR',
	path: 'doc://temp/'
});

M.tool.log(result);
alert(JSON.stringify(result));