@milaboratories/pl-drivers 1.3.5 → 1.3.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/drivers/virtual_storages.d.ts.map +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +16 -8
- package/dist/index.mjs.map +1 -1
- package/package.json +4 -4
- package/src/drivers/virtual_storages.ts +22 -14
package/dist/index.mjs
CHANGED
|
@@ -4339,15 +4339,23 @@ async function un() {
|
|
|
4339
4339
|
];
|
|
4340
4340
|
{
|
|
4341
4341
|
const t = Z.parse(s).root.replaceAll(":\\", "");
|
|
4342
|
-
|
|
4342
|
+
try {
|
|
4343
|
+
return (await ct.promisify(dt)("wmic logicaldisk get name")).stdout.split(`\r
|
|
4343
4344
|
`).filter((o) => o.includes(":")).map((o) => o.trim().replaceAll(":", "")).map((o) => {
|
|
4344
|
-
|
|
4345
|
-
|
|
4346
|
-
|
|
4347
|
-
|
|
4348
|
-
|
|
4349
|
-
|
|
4350
|
-
|
|
4345
|
+
const a = o == t;
|
|
4346
|
+
return {
|
|
4347
|
+
name: `local_disk_${o}`,
|
|
4348
|
+
root: `${o}:\\`,
|
|
4349
|
+
initialPath: a ? s : `${o}:\\`
|
|
4350
|
+
};
|
|
4351
|
+
});
|
|
4352
|
+
} catch {
|
|
4353
|
+
return [{
|
|
4354
|
+
name: `local_disk_${t}`,
|
|
4355
|
+
root: `${t}:\\`,
|
|
4356
|
+
initialPath: s
|
|
4357
|
+
}];
|
|
4358
|
+
}
|
|
4351
4359
|
}
|
|
4352
4360
|
}
|
|
4353
4361
|
class Me {
|