public void setPathAndType(String path) {
		this.path = path;
		if (path != null && path.lastIndexOf(".") != -1) {
			this.type = path.substring(path.lastIndexOf("."));
		} else {
			this.type = "";
		}
	}