Gio.ApplicationCommandLine.prototype.create_file_for_arg
function create_file_for_arg(arg: String): Gio.File {
// Gjs wrapper for g_application_command_line_create_file_for_arg()
}
Creates a Gio.File corresponding to a filename that was given as part of the invocation of cmdline.
This differs from Gio.file_new_for_commandline_arg in that it resolves relative pathnames using the current working directory of the invoking process rather than the local process.
Since 2.36
- arg
an argument from cmdline
- Returns
a new Gio.File