package exo2.files;

import exo2.fileSystem.Node;

public class File implements Node {
	private String name;
	public File( String name ) { 
		this.name = name; 
	}
	public String getName() {
		return name;
	}
	@Override
	public void add(Node n) {
		throw new RuntimeException("Opération non supportée");
	}
	@Override
	public Node getFile(String name) {
		throw new RuntimeException("Opération non supportée");
	}
}