Package java.nio.file.attribute

Examples of java.nio.file.attribute.PosixFileAttributes.lastModifiedTime()


            file_type = FT_DEVICE;
          }
         
            file_access_time = attrs.lastAccessTime().to(TimeUnit.SECONDS);
            file_create_time = attrs.creationTime().to(TimeUnit.SECONDS);
            file_modify_time = attrs.lastModifiedTime().to(TimeUnit.SECONDS);

            file_access = 0;
            if (Files.isReadable(path)) file_access |= FILE_ACCESS_READ;
            if (Files.isWritable(path)) file_access |= FILE_ACCESS_WRITE;
View Full Code Here


          readAttributes.permissions().contains(
              PosixFilePermission.OWNER_EXECUTE),
          readAttributes.isSymbolicLink(),
          readAttributes.isRegularFile(), //
          readAttributes.creationTime().toMillis(), //
          readAttributes.lastModifiedTime().toMillis(),
          readAttributes.size());
      return attributes;
    } catch (NoSuchFileException e) {
      return new FileUtil.Java7BasicAttributes(fs, path, false, false,
          false, false, false, 0L, 0L, 0L);
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.