简体   繁体   中英

How to read a file properties present in remote linux directory from windows through a java program?

我在远程Linux系统中有一个目录,我想从此处通过Java程序从Windows系统中读取所有文件元数据(文件名,大小,所有者等)。

You need someway to connect to the Linux file system using SSH, SAMBA, NFS... If you map the Linux file system to a local drive using SAMBA you can read remote files just as you would local files. You may need to use java.nio.file.Files in Java 7 to get advanced file properties (like the owner).

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM