V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
bruceliang
V2EX  ›  Java

Linux Java 如何获取文件的精确值 mtime

  •  
  •   bruceliang · Sep 4, 2019 · 3561 views
    This topic created in 2427 days ago, the information mentioned may be changed or developed.

    获取 stat 输出的 mtime

    3 replies    2019-09-04 20:24:54 +08:00
    mzeht
        1
    mzeht  
       Sep 4, 2019
    Java Runtime.exec 运行 shell 命令
    bruceliang
        2
    bruceliang  
    OP
       Sep 4, 2019
    没有其他更好的办法了么,我看 java 能够获取的最详细的有一个这个
    http://andreinc.net/2013/12/05/java-7-nio-2-tutorial-file-attributes/
    但是后三位获取不了
    ysc3839
        3
    ysc3839  
       Sep 4, 2019
    用 JNI 调用系统 API?
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5006 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 47ms · UTC 01:08 · PVG 09:08 · LAX 18:08 · JFK 21:08
    ♥ Do have faith in what you're doing.