test path or disk is it network device
node.js
npm install is-network-drive
- using NAPI call system library
- support Apple Mac & Windows
var isNetworkDrive = require("is-network-drive")
it will return boolean, if path or drive is network device it will return TRUE, otherwise it will be FALSE.
isNetworkDrive("/Volumes/Library/SMB-Test")
isNetworkDrive("/Users/pickuse/Project/test")
isNetworkDrive("/Users/pickuse/Project/tttt")
isNetworkDrive("/Volumes/Library/SMB-Test")
isNetworkDrive("smb://192.168.0.124")
isNetworkDrive("C:\\Users\\Edward\\Desktop")
isNetworkDrive("C:\\")
isNetworkDrive("C://")
isNetworkDrive("Z:\\SMB-Test")
isNetworkDrive("Z://SMB-Test")
isNetworkDrive('\\\\192.168.0.1\\test')