SunilWang / node-os-utils

OS Utils - An operating system utility library.
https://www.npmjs.com/package/node-os-utils
MIT License
125 stars 19 forks source link

osu.drive failing #37

Open ChriswZeroOne opened 1 year ago

ChriswZeroOne commented 1 year ago

Hi,

I have an issue with drive.anything failing. I am getting the disk name invalid and / not found. I found on the net that you have fixed this before however there is another issue going on here. I have this problem going on with my ubuntu server. "df: /run/user/1000/doc: Operation not permitted"

You can read about it here: https://bugs.launchpad.net/ubuntu/+source/xdg-desktop-portal/+bug/1905623 Pardon me if you don't like links posted. My work around was to build the command line and pass it to exec.

let command = df -kP + diskName; then pass the drive I want as a parameter to the drive object. Then pass the command to your exec function. After that df only returns information about that particular mount with the correct header and all works fine. I cannot however run df without that error popping up.

Other than that, love what I have used so far. Thanks for the work!

Chris