2016-03-08 35 views
1

我正在嘗試從Debian機器連接到SMB服務器。我從https://github.com/bchelli/node-smb2下載的部份SMB2客戶端,我已經做了例子SMB-Get Nodejs getaddrinfo ENOTFOUND

var SMB2 = require('smb2'); 

// create an SMB2 instance 
var smb2Client = new SMB2({ 
    share:'\\\\xxx/appfolder/\\' 
, domain:'xxx' 
, username:'teste' 
, password:'teste' 
}); 


smb2Client.exists('/Base_dados.mdb', function (err, exists) { 
    if (err) throw err; 
    console.log(exists ? "it's there" : "it's not there!"); 
}); 

我得到的電流誤差

/home/sergio/Desktop/node-access/index.js:14 
    if (err) throw err; 
       ^

如果任何人有關於如何解決這個任何想法,將不勝讚賞。

問候。

回答

0

問題所依據的路徑

'\\\\xxx\\app_folder' 

固定的問題上。

相關問題