coderaiser / cloudcmd

✨☁️📁✨ Cloud Commander file manager for the web with console and editor.
https://cloudcmd.io
MIT License
1.84k stars 259 forks source link

enoent error #397

Closed ohitstom closed 7 months ago

ohitstom commented 1 year ago

image

coderaiser commented 1 year ago

Looks like you set wrong root, could you please try c:\ instead, since / used for Linux paths.

ohitstom commented 1 year ago

Looks like you set wrong root, could you please try c:\ instead, since / used for Linux paths.

both cause this error, wherever i run the startup command prepends to the actual root im setting

coderaiser commented 1 year ago

Looks like a problem in restafary, could you please try to start restafary. Is it has same behavior?

Could you please tell me what use see when open http://localhost:8000/ is it content of your c volume, or an error?

ohitstom commented 1 year ago

image image

ohitstom commented 1 year ago

one thing that does work is setting root to "\" then launching cloudcmd from a terminal that has cd'd to C: directly like so:

image image

however this means i cannot change root in app and its actually dependant on where i launch the process from, this isnt ideal as i have multiple drives and would have to restart the process every time...

coderaiser commented 1 year ago

and its actually dependant on where i launch the process from

Only if you set root to ., Cloud Commander will show you current directory.

Could you please check if mellow works for you.

ohitstom commented 1 year ago

once installed what should i set root to?

coderaiser commented 1 year ago

I don’t understand where came from :C:\Users\tomfi if the root is C:\

image

ohitstom commented 1 year ago

I don’t understand where came from :C:\Users\tomfi if the root is C:\

image

when you open cmd its directory is set to the user profile, so if you run ls its the contents of your user profile.

Setting root doesnt override this and its combining the two at runtime, atleast i assume thats whats happening

coderaiser commented 1 year ago

What you see if the root is default /? Is it list of all drives?

Try to install win32 and run this code:

const win = require('win32');

const volumes = await win.getVolumes();
console.log(volumes)

What do you see?

ohitstom commented 1 year ago

What you see if the root is default /? Is it list of all drives?

image image

coderaiser commented 1 year ago

Looks like getVolumes doesn’t works for you. I don’t have windows, so PR’s are welcome.

ohitstom commented 1 year ago

Looks like getVolumes doesn’t works for you. I don’t have windows, so PR’s are welcome. looks like it image

coderaiser commented 1 year ago

Need another way to get list of volumes on windows

ohitstom commented 1 year ago

Need another way to get list of volumes on windows

https://github.com/balena-io-modules/drivelist

perhaps this would work better crossplatform?

coderaiser commented 1 year ago

This feature is needed only for windows, there is no such problems in Linux and Mac OS. About this tool it required MS Visual Studio was installed on your computer and compilation step for other operation systems.

ohitstom commented 1 year ago

This feature is needed only for windows, there is no such problems in Linux and Mac OS. About this tool it required MS Visual Studio was installed on your computer and compilation step for other operation systems.

that is a shame, there might be some workaround using built in windows tools ig

coderaiser commented 1 year ago

What this command shows you:

wmic logicaldisk get name
ohitstom commented 1 year ago

What this command shows you:

wmic logicaldisk get name

image

coderaiser commented 1 year ago

So wmic works good, and getVolumes doesn't work for you?

ohitstom commented 1 year ago

So wmic works good, and getVolumes doesn't work for you?

that is exactly correct

coderaiser commented 1 year ago

Try to call it with spawn using node js

ohitstom commented 1 year ago

image still no dice just returns []...

coderaiser commented 7 months ago

Closed due to a long time of inactivity 🏝