static boolean newFile(String path, Object o) {

		File newpath = new File(path);

		if (!newpath.isDirectory()) {
			// throw new
			// IllegalArgumentException("File root is not a directory");
			newpath.mkdir();
			System.out.print("Entro al if");
		}

		else {

			File f = null;
			boolean bool;

			try {
				// create new file
				System.out.print("El path es " + newpath.getPath() + "\n");
				File f1 = (File) o;
				// System.out.print("El path del object es " + f1.getPath() +
				// "\n");
				f = new File(newpath.getPath(), "text.txt");

				// tries to create new file in the system
				bool = f.createNewFile();

				// prints
				System.out.println("File created: " + bool);

			} catch (Exception e) {
				e.printStackTrace();
			}
		}

		return false;
	}