Buckets:
| ; | |
| function posix(path) { | |
| return path.charAt(0) === '/'; | |
| } | |
| function win32(path) { | |
| // https://github.com/nodejs/node/blob/b3fcc245fb25539909ef1d5eaa01dbf92e168633/lib/path.js#L56 | |
| var splitDeviceRe = /^([a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?([\\\/])?([\s\S]*?)$/; | |
| var result = splitDeviceRe.exec(path); | |
| var device = result[1] || ''; | |
| var isUnc = Boolean(device && device.charAt(1) !== ':'); | |
| // UNC paths are always absolute | |
| return Boolean(result[2] || isUnc); | |
| } | |
| module.exports = process.platform === 'win32' ? win32 : posix; | |
| module.exports.posix = posix; | |
| module.exports.win32 = win32; | |
Xet Storage Details
- Size:
- 611 Bytes
- Xet hash:
- 2e0a0f474644247b831b023bc8b24b08ce67f2efb3b35f0be05dbfa24d9c2cf2
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.