Lines Matching refs:path

91         zzmove,          // <java Demo zzmove zfsrc zfdst path>
92 // move entry path/dir from zfsrc to zfdst
94 zzcopy, // <java Demo zzcopy zfsrc zfdst path>
95 // copy path from zipfile zfsrc to zipfile
98 attrs, // <java Demo attrs zipfile path>
99 // printout the attributes of entry path
101 attrsspace, // <java Demo attrsspace zipfile path>
102 // printout the storespace attrs of entry path
104 setmtime, // <java Demo setmtime zipfile "MM/dd/yy-HH:mm:ss" path...>
105 // set the lastModifiedTime of entry path
107 setatime, // <java Demo setatime zipfile "MM/dd/yy-HH:mm:ss" path...>
108 setctime, // <java Demo setctime zipfile "MM/dd/yy-HH:mm:ss" path...>
167 Path path, src, dst;
221 path = fs.getPath(args[i]);
222 System.out.println(path);
224 Files.readAttributes(path, BasicFileAttributes.class).toString());
231 path = fs.getPath(args[i]);
232 Files.setAttribute(path, "lastModifiedTime",
235 Files.readAttributes(path, BasicFileAttributes.class).toString());
242 path = fs.getPath(args[i]);
243 Files.setAttribute(path, "creationTime",
246 Files.readAttributes(path, BasicFileAttributes.class).toString());
253 path = fs.getPath(args[i]);
254 Files.setAttribute(path, "lastAccessTime",
257 Files.readAttributes(path, BasicFileAttributes.class).toString());
261 path = fs.getPath("/");
262 FileStore fstore = Files.getFileStore(path);
309 path = fs.getPath(args[2]);
311 try (DirectoryStream<Path> ds = Files.newDirectoryStream(path,
314 public boolean accept(Path path) {
315 return path.toString().contains(fStr);
331 path = fs.getPath(args[i]);
332 System.out.printf("%n%s%n", path);
335 Files.readAttributes(path, BasicFileAttributes.class).toString());
337 Map<String, Object> map = Files.readAttributes(path, "zip:*");
342 map = Files.readAttributes(path, "size,lastModifiedTime,isDirectory");
385 private static void walk(Path path) throws IOException
388 path,
426 private static void update(FileSystem fs, String path) throws Throwable{
427 Path src = FileSystems.getDefault().getPath(path);
434 Path dst = fs.getPath(path);
442 private static void extract(FileSystem fs, String path) throws Throwable{
443 Path src = fs.getPath(path);
450 if (path.startsWith("/"))
451 path = path.substring(1);
452 Path dst = FileSystems.getDefault().getPath(path);
461 private static void z2zcopy(FileSystem src, FileSystem dst, String path)
464 Path srcPath = src.getPath(path);
465 Path dstPath = dst.getPath(path);
476 path + (path.endsWith("/")?"":"/") + child.getFileName());
480 //System.out.println("copying..." + path);
486 private static void z2zmove(FileSystem src, FileSystem dst, String path)
489 final Path srcPath = src.getPath(path).toAbsolutePath();
490 final Path dstPath = dst.getPath(path).toAbsolutePath();
543 private static void mkdirs(Path path) throws IOException {
544 path = path.toAbsolutePath();
545 Path parent = path.getParent();
550 Files.createDirectory(path);
557 private static void rmdirs(Path path) throws IOException {
558 while (path != null && path.getNameCount() != 0) {
559 Files.delete(path);
560 path = path.getParent();
564 private static void list(Path path, boolean verbose ) throws IOException {
565 if (!"/".equals(path.toString())) {
566 System.out.printf(" %s%n", path.toString());
568 System.out.println(Files.readAttributes(path, BasicFileAttributes.class).toString());
570 if (Files.notExists(path))
572 if (Files.isDirectory(path)) {
573 try (DirectoryStream<Path> ds = Files.newDirectoryStream(path)) {