Skip to content

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

Description

@hfassold

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions