Module luarocks.fs.win32

Windows implementation of filesystem and platform abstractions.

Download http://unxutils.sourceforge.net/ for Windows GNU utilities used by this module.

Functions

Q (arg) Quote argument for shell processing.
absolute_name (pathname, relative_to) Return an absolute pathname from a potentially relative one.
wrap_script (file, dest) Create a wrapper to make a script executable from the command-line.


Functions

Q (arg)
Quote argument for shell processing. Fixes paths on Windows. Adds single quotes and escapes.

Parameters:

  • arg: string: Unquoted argument.

Returns:

    string: Quoted argument.
absolute_name (pathname, relative_to)
Return an absolute pathname from a potentially relative one.

Parameters:

  • pathname: string: pathname to convert.
  • relative_to: string or nil: path to prepend when making pathname absolute, or the current dir in the dir stack if not given.

Returns:

    string: The pathname converted to absolute.
wrap_script (file, dest)
Create a wrapper to make a script executable from the command-line.

Parameters:

  • file: string: Pathname of script to be made executable.
  • dest: string: Directory where to put the wrapper.

Returns:

    boolean or (nil, string): True if succeeded, or nil and an error message.
generated by LDoc 0.5