question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Can't delete files

See original GitHub issue

Hi 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:closed
  • Created 2 years ago
  • Comments:10 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
ShardanaSoftcommented, Sep 20, 2021

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

1reaction
ShardanaSoftcommented, Sep 16, 2021

I’ll take a look in the week end, hope I can help 💪

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found