package com.github.aureliano.edocs.file.repository;

import java.io.File;
import java.io.InputStream;
import java.util.List;

public class FileSystemRepository implements IRepository {

	public FileSystemRepository() {}
	
	@Override
	public Long getAvailableDiskSapce() {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public Long getDiskSize() {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public String createDir(String path) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public List<String> listFiles(String path) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public InputStream getFileStream(String path) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public File getFile(String path) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public String saveFile(String path) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public void deleteFile(String path) {
		// TODO Auto-generated method stub
		
	}
}
@@ -123,100 +123,484 @@
 t;%0A%0A
-public class FileSystemRepository implements IRepository %7B%0A%0A%09public FileSystemRepository() %7B
+import com.github.aureliano.edocs.common.config.ConfigurationSingleton;%0Aimport com.github.aureliano.edocs.common.config.FileRepositoryConfiguration;%0Aimport com.github.aureliano.edocs.common.helper.FileHelper;%0A%0Apublic class FileSystemRepository implements IRepository %7B%0A%0A%09private FileRepositoryConfiguration configuration;%0A%09%0A%09public FileSystemRepository() %7B%0A%09%09this.configuration = ConfigurationSingleton.instance()%0A%09%09%09%09.getAppConfiguration().getFileRepositoryConfiguration();%0A%09
 %7D%0A%09%0A
@@ -858,42 +858,142 @@
 %7B%0A%09%09
-// TODO Auto-generated method stub
+String dirPath = FileHelper.buildPath(this.configuration.getRootPath(), path);%0A%09%09FileHelper.createDirectory(new File(dirPath), true);%0A
 %0A%09%09r
@@ -990,36 +990,39 @@
 rue);%0A%0A%09%09return 
-null
+dirPath
 ;%0A%09%7D%0A%0A%09@Override

Create directory.