summaryrefslogtreecommitdiff
path: root/man
diff options
context:
space:
mode:
authorRoss Lagerwall <rosslagerwall@gmail.com>2014-08-12 23:08:25 +0100
committerRoss Lagerwall <rosslagerwall@gmail.com>2014-08-14 18:03:56 +0100
commit540b03f9a73f58b1a1237b84ae1d453c4ac37a5f (patch)
treee904b0ee685564627b74e3d6e552e78dfcc7379f /man
parentaae5c91460a36f091384a4b3bcbb8cb70f33f135 (diff)
downloadgvfs-540b03f9a73f58b1a1237b84ae1d453c4ac37a5f.tar.gz
gvfs-save: Allow specifying G_FILE_CREATE_REPLACE_DESTINATION
Allow specifying G_FILE_CREATE_REPLACE_DESTINATION when using gvfs-save with the -u flag or --unlink. I chose this because "unlink" represents what G_FILE_CREATE_REPLACE_DESTINATION does in principle: it unlinks the destination before replacing it, thereby losing any permissions or other attributes of the file. https://bugzilla.gnome.org/show_bug.cgi?id=734695
Diffstat (limited to 'man')
-rw-r--r--man/gvfs-save.xml11
1 files changed, 11 insertions, 0 deletions
diff --git a/man/gvfs-save.xml b/man/gvfs-save.xml
index ef188f9a..822e6a44 100644
--- a/man/gvfs-save.xml
+++ b/man/gvfs-save.xml
@@ -95,6 +95,17 @@
</varlistentry>
<varlistentry>
+ <term><option>-u</option>, <option>--unlink</option></term>
+
+ <listitem>
+ <para>When replacing an existing file,
+ replace the destination as if it does
+ not exist. Think of it as unlinking
+ the destination before writing.</para>
+ </listitem>
+ </varlistentry>
+
+ <varlistentry>
<term><option>-v</option>, <option>--print-etag</option></term>
<listitem><para>Print the new etag at the end.</para></listitem>