public Directory retriveRootDirectory(){

		File dir = new File(rootPath);

		//If directory don't exist
		if (!dir.exists())
		{
			//Create directory
			dir.mkdir();
		}

		Directory directory = new Directory(rootPath);

		List<File> files = new ArrayList<File>();
		List<File> folders = new ArrayList<File>();

		List<File> allFiles;

		//List files
		if(filter==null){
			allFiles = Arrays.asList(dir.listFiles());
		}else{
			allFiles = Arrays.asList(dir.listFiles(filter));
		}

		for(File file: allFiles){

			if(!file.isDirectory()){
				files.add(file);
			}else{
				folders.add(file);
			}
		}

		directory.setFiles(files);
		directory.setFolders(folders);

		directory.setFreeSpace(dir.getFreeSpace());
		directory.setUsableSpace(dir.getUsableSpace());
		directory.setTotalSpace(dir.getTotalSpace());

		return directory;
	}