Can't delete files
See original GitHub issueHi and first of all , thanks for this amazing file manager.
I’m not able to delete file or folders. I have not error in console,
I’m struggling with it. I’m using the very same code that use cloudcmd as middleware.
versions are: “cloudcmd”: “^15.9.8”, “express”: “^4.17.1”, “socket.io”: “^4.2.0”
A prompt appear saying:
Cloud commander
ENOENT: "my file path"
Continue?
import http from 'http';
import cloudcmd from 'cloudcmd';
import {Server} from 'socket.io';
import express from 'express';
const app = express();
const port = 1337;
const prefix = '/';
const server = http.createServer(app);
const socket = new Server(server, {
path: `${prefix}socket.io`,
});
const config = {
name: 'cloudcmd :)',
};
const filePicker = {
data: {
FilePicker: {
key: 'key',
},
},
};
// override option from json/modules.json
const modules = {
filePicker,
};
const {
createConfigManager,
configPath,
} = cloudcmd;
const configManager = createConfigManager({
configPath,
});
app.use(prefix, cloudcmd({
socket, // used by Config, Edit (optional) and Console (required)
config, // config data (optional)
modules, // optional
configManager, // optional
}));
server.listen(port);
Issue Analytics
- State:
- Created 2 years ago
- Comments:10 (4 by maintainers)
Top Results From Across the Web
Can't delete a file in Windows? Here are eight solutions - IONOS
Can't delete a file in Windows? Here are eight solutions · Close all programs · Restart the computer · Remove a deleted folder...
Read more >How To Delete Files That Won't Delete - Tech Advisor
How to delete files that won't delete · 1. Close apps · 2. Close Windows Explorer · 3. Reboot Windows · 4. Use...
Read more >Solved: Can't Delete File in Windows 10
If a file won't delete, selecting it and pressing Shift + Delete keyboard shortcut is another way to erase the data permanently. This...
Read more >Can't Delete a File or Folder in Windows 10? Force Delete It
Tip 1. Close all open programs that might be currently using the file or folder. · Tip 2. Press Ctrl + Shift +...
Read more >How to Delete a File That Won't Delete in Windows 11/10
One is simply using the delete option, and the other one is deleting files permanently. When you can't delete a file normally, you...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Ok I think I got it.
redzip
in this lib try to remove a directory using fs module. (rmdir)
rmdir doesn’t throw error with code ENOTDIR in windows (ENOENT)
So the test fails and it’s not able to continue.
this test is not suitable for windows and this looks like a wontfix issue
Opened a issue in redzip
I’ll take a look in the week end, hope I can help 💪