簡體   English   中英

使用Java程序從Unix Box讀取Windows機器上共享的內容

[英]Reading contents shared on Windows machine from Unix Box with a Java Program

我在Windows機器上有共享內容,說\\ someip \\ somedirectory,現在我想用Java編寫一個程序,該程序在Unix Box上運行並讀取共享文件夾的內容。

File file=new File(directoryPath);
if(file.isDirectory()) returns false.

因此,我本身沒有第一步。 請提出我該怎么做。

您應該使用return ,而不是returns

File file=new File(directoryPath);
if(file.isDirectory()) return false;

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM