1 Star 0 Fork 1.4K

javaalpha/DocSys

forked from Rainy/DocSys 
加入 Gitee
与超过 1400万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
DocSyncUpTest.java 610 Bytes
一键复制 编辑 原始数据 按行查看 历史
Rainy 提交于 2019-09-05 16:38 +08:00 . Merge from DocSys_bld_2.01
package com.DocSystem.test;
import java.io.File;
class DocSyncUpTest
{
public static void main(String[] args) throws InterruptedException
{
String localPath = "C:\\DocSysReposes\\4\\data";
File dir = new File(localPath);
for(int i=1; i< 1000; i++)
{
if (dir.setLastModified(System.currentTimeMillis()))
System.out.println("Success!");
else
System.out.println("Failed!");
System.out.println("最近修改时间:" + dir.lastModified());
Thread.sleep(1000);
}
}
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Java
1
https://gitee.com/javaalpha/DocSys.git
git@gitee.com:javaalpha/DocSys.git
javaalpha
DocSys
DocSys
master

搜索帮助