vim-netranger
vim-netranger copied to clipboard
Deletion in windows doesn't work
Hi, I tried using the plugin on windows. Upon deleting any file (DD) , it returns error that the filename is incorrect. I debugged it a bit, and it seems to transfer the name to fs_server.py OK. I think that also moving with dd and p doesn't work.
Thanks. I hope you still maintain it.
Could you post the error message?
File name, directory name or volume label syntax is incorrect
I noticed that in running the job all the \ are treated as special chars instead of as folders. I am not sure why.
I spent half day trying to setup the environment on Windows. But it turned out to be more complicated than I thought. I just realized that libmagic on Windows also need special treatment. And it seems to be very up-portable from the github page
You'll need DLLs for libmagic. @julian-r has uploaded a version of this project that includes binaries to PyPI: https://pypi.python.org/pypi/python-magic-bin/0.4.14 Other sources of the libraries in the past have been File for Windows . You will need to copy the file magic out of [binary-zip]\share\misc, and pass its location to Magic(magic_file=...). If you are using a 64-bit build of python, you'll need 64-bit libmagic binaries which can be found here: https://github.com/pidydx/libmagicwin64. Newer version can be found here: https://github.com/nscaife/file-windows.
Therefore, I am hesitant to maintain this plugin for Windows (and I don't use Windows on a regular basis). But feel free to send a pull request.