mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-11-09 19:06:15 +01:00
Merge branch 'wip/oholy/gfile-docs' into 'master'
Symlink-related fixes for `g_file_move()` Closes #986 See merge request GNOME/glib!900
This commit is contained in:
commit
c07d9434f4
@ -494,6 +494,31 @@
|
||||
to <replaceable>DESTINATION</replaceable>. If more than one source
|
||||
is specified, the destination must be a directory.</para>
|
||||
<para>The <command>move</command> command is similar to the traditional <command>mv</command> utility.</para>
|
||||
<refsect3>
|
||||
<title>Options</title>
|
||||
<variablelist>
|
||||
<varlistentry>
|
||||
<term><option>-T</option>, <option>--no-target-directory</option></term>
|
||||
<listitem><para>Don’t copy into <replaceable>DESTINATION</replaceable> even if it is a directory.</para></listitem>
|
||||
</varlistentry>
|
||||
<varlistentry>
|
||||
<term><option>-p</option>, <option>--progress</option></term>
|
||||
<listitem><para>Show progress.</para></listitem>
|
||||
</varlistentry>
|
||||
<varlistentry>
|
||||
<term><option>-i</option>, <option>--interactive</option></term>
|
||||
<listitem><para>Prompt for confirmation before overwriting files.</para></listitem>
|
||||
</varlistentry>
|
||||
<varlistentry>
|
||||
<term><option>-b</option>, <option>--backup</option></term>
|
||||
<listitem><para>Create backups of existing destination files.</para></listitem>
|
||||
</varlistentry>
|
||||
<varlistentry>
|
||||
<term><option>-C</option>, <option>--no-copy-fallback</option></term>
|
||||
<listitem><para>Don’t use copy and delete fallback.</para></listitem>
|
||||
</varlistentry>
|
||||
</variablelist>
|
||||
</refsect3>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
|
||||
|
@ -3652,10 +3652,6 @@ g_file_copy_finish (GFile *file,
|
||||
* If the flag #G_FILE_COPY_OVERWRITE is specified an already
|
||||
* existing @destination file is overwritten.
|
||||
*
|
||||
* If the flag #G_FILE_COPY_NOFOLLOW_SYMLINKS is specified then symlinks
|
||||
* will be copied as symlinks, otherwise the target of the
|
||||
* @source symlink will be copied.
|
||||
*
|
||||
* If @cancellable is not %NULL, then the operation can be cancelled by
|
||||
* triggering the cancellable object from another thread. If the operation
|
||||
* was cancelled, the error %G_IO_ERROR_CANCELLED will be returned.
|
||||
@ -3759,7 +3755,7 @@ g_file_move (GFile *source,
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
flags |= G_FILE_COPY_ALL_METADATA;
|
||||
flags |= G_FILE_COPY_ALL_METADATA | G_FILE_COPY_NOFOLLOW_SYMLINKS;
|
||||
if (!g_file_copy (source, destination, flags, cancellable,
|
||||
progress_callback, progress_callback_data,
|
||||
error))
|
||||
|
Loading…
Reference in New Issue
Block a user