Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

luarocks install on windows gives error (invalid directory) #31

Open
hfassold opened this issue May 13, 2016 · 0 comments
Open

luarocks install on windows gives error (invalid directory) #31

hfassold opened this issue May 13, 2016 · 0 comments

Comments

@hfassold
Copy link

hfassold commented May 13, 2016

Hi,

please replace in the function 'tools.delete' in file '/luarocks/src/luarocks/fs/win32/tools.lua'
, in the line starting with 'fs.execute_quit', the string "\" with "\*"

Make the same replacement also in the function 'tools.is_dir' in the same source file

The original function does not work, at least on my Windows 7 64-bit system.
See the following comments for more info:

-- bugfix (the original formulation with the '' at the end does not work,
-- it falls incorrectly into the 'directory' path even if the argument is a file
-- The 'rmdir' command then of course gives an error, because it expects a directory and not a file.
-- This error occurs on windows 7, 64-bit - i suppose also on other systems.
-- fix was done according to answer of gerard at http://stackoverflow.com/questions/138981/how-do-i-test-if-a-file-is-a-directory-in-a-batch-script

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant