g.dirseps
Internal GRASS utility for converting directory separator characters.
Converts any directory separator characters in the input string to or from native host format, and writes the changed path to standard output. Useful in scripts for Windows compatibility.
g.dirseps [-hg] [path=string] [--verbose] [--quiet] [--qq] [--ui]
Example:
g.dirseps
grass.script.parse_command("g.dirseps", path=None, flags=None, verbose=False, quiet=False, superquiet=False)
Example:
gs.parse_command("g.dirseps")
Parameters
path=string
Path to be converted (read from stdin if not specified)
-h
Convert directory separators to native host format
-g
Convert directory separators to GRASS internal format
--help
Print usage summary
--verbose
Verbose module output
--quiet
Quiet module output
--qq
Very quiet module output
--ui
Force launching GUI dialog
path : str, optional
Path to be converted (read from stdin if not specified)
flags : str, optional
Allowed values: h, g
h
Convert directory separators to native host format
g
Convert directory separators to GRASS internal format
verbose: bool, optional
Verbose module output
Default: False
quiet: bool, optional
Quiet module output
Default: False
superquiet: bool, optional
Very quiet module output
Default: False
DESCRIPTION
g.dirseps is an internal tool only. It copies input string to stdout, changing directory separator characters as specified by flags. It is used for interoperability between Unix and MS-Windows pathnames.
AUTHOR
Paul Kelly
SOURCE CODE
Available at: g.dirseps source code
(history)
Latest change: Friday Feb 07 19:16:09 2025 in commit a82a39f