File.this

Creates a GFile with the given argument from the command line. This function is similar to g_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 g_application_command_line_create_file_for_arg(). Since 2.36

  1. this(GFile* gFile)
  2. this(string arg)
  3. this(string arg, string cwd)
    class File
    this
    (
    string arg
    ,
    string cwd
    )
  4. this(string tmpl, FileIOStream iostream)

Parameters

arg string

a command line string

cwd string

the current working directory of the commandline

Throws

ConstructionException GTK+ fails to create the object.

Meta