private final static void init(String path) 
			throws MasterException {
		
		if(path == null || path.equals(""))
			throw new MasterException("The path is not null or empty string");
		
		if(MasterMetadata.initFlag) //If it is already initialized.
			return;
		
		MasterMetadata.dir= new File(path);
		if(MasterMetadata.dir.exists() == false)
			throw new MasterException("Directory or File not existing");
			
		MasterMetadata.fileList= MasterMetadata.getFiles(MasterMetadata.dir, new LinkedList<File>());
		MasterMetadata.initFlag= true;
	}