Gio.File.new_for_commandline_arg_and_cwd
function new_for_commandline_arg_and_cwd(arg: String, cwd: String): Gio.File {
// Gjs wrapper for g_file_new_for_commandline_arg_and_cwd()
}
Creates a Gio.File with the given argument from the command line.
This function is similar to Gio.file_new_for_commandline_arg except that it allows for passing the current working directory as an argument instead of using the current working directory of the process.
This is useful if the commandline argument was given in a context other than the invocation of the current process.
See also Gio.ApplicationCommandLine.prototype.create_file_for_arg.
Since 2.36
- arg
a command line string
- cwd
the current working directory of the commandline
- Returns
a new Gio.File