Package: gio

Function g-file-new-for-commandline-arg-and-cwd

Lambda List

g-file-new-for-commandline-arg-and-cwd (arg cwd)

Arguments

arg -- a command line string
cwd -- a string with the current working directory of the command line

Return Value

A new g-file object.

Details

Creates a g-file object with the given argument from the command line.

This function is similar to the g-file-new-for-commandline-arg function 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 command line argument was given in a context other than the invocation of the current process.

See also the g-application-command-line-create-file-for-arg function.
 

See also

2021-10-8