forked from TrueCloudLab/restic
Fix typos
This commit is contained in:
parent
33c670dd7a
commit
4401265e36
3 changed files with 3 additions and 3 deletions
|
@ -585,7 +585,7 @@ Sometimes, it can be useful to directly save the output of a program, for exampl
|
||||||
``mysqldump`` so that the SQL can later be restored. Restic supports this mode
|
``mysqldump`` so that the SQL can later be restored. Restic supports this mode
|
||||||
of operation; just supply the option ``--stdin-from-command`` when using the
|
of operation; just supply the option ``--stdin-from-command`` when using the
|
||||||
``backup`` action, and write the command in place of the files/directories. To prevent
|
``backup`` action, and write the command in place of the files/directories. To prevent
|
||||||
restic from interpreting the arguments for the commmand, make sure to add ``--`` before
|
restic from interpreting the arguments for the command, make sure to add ``--`` before
|
||||||
the command starts:
|
the command starts:
|
||||||
|
|
||||||
.. code-block:: console
|
.. code-block:: console
|
||||||
|
|
|
@ -49,7 +49,7 @@ func TestFilesWriterRecursiveOverwrite(t *testing.T) {
|
||||||
// must error if recursive delete is not allowed
|
// must error if recursive delete is not allowed
|
||||||
w := newFilesWriter(1, false)
|
w := newFilesWriter(1, false)
|
||||||
err := w.writeToFile(path, []byte{1}, 0, 2, false)
|
err := w.writeToFile(path, []byte{1}, 0, 2, false)
|
||||||
rtest.Assert(t, errors.Is(err, notEmptyDirError()), "unexepected error got %v", err)
|
rtest.Assert(t, errors.Is(err, notEmptyDirError()), "unexpected error got %v", err)
|
||||||
rtest.Equals(t, 0, len(w.buckets[0].files))
|
rtest.Equals(t, 0, len(w.buckets[0].files))
|
||||||
|
|
||||||
// must replace directory
|
// must replace directory
|
||||||
|
|
|
@ -8,6 +8,6 @@ import "strings"
|
||||||
// toComparableFilename returns a filename suitable for equality checks. On Windows, it returns the
|
// toComparableFilename returns a filename suitable for equality checks. On Windows, it returns the
|
||||||
// uppercase version of the string. On all other systems, it returns the unmodified filename.
|
// uppercase version of the string. On all other systems, it returns the unmodified filename.
|
||||||
func toComparableFilename(path string) string {
|
func toComparableFilename(path string) string {
|
||||||
// apparently NTFS internally uppercases filenames for comparision
|
// apparently NTFS internally uppercases filenames for comparison
|
||||||
return strings.ToUpper(path)
|
return strings.ToUpper(path)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue