os

package
v0.4.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 29, 2019 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package os provides a platform-independent interface to operating system functionality.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Cp

func Cp(dst string, src ...string) error

Cp behaves like the Unix command cp with -rf flags. The possible scenarios are:

* [FAIL] No source.

* [FAIL] Non existent source.

* [FAIL] Multiple non existent elements in destination path.

* [FAIL] Bad permissions.

* [PASS] File to non existent file, dst will be created with the same content as src.

* [PASS] File to file, dst will be overwritten by src.

* [PASS] File to directory, dst will be a file inside dst with the same base name as src.

* [FAIL] Directory to file.

* [PASS] Directory to non existent directory, dst will be created with the same content as src.

* [PASS] Directory to directory, dst will be a directory inside dst with the same base name as src.

* [FAIL] Directory to itself.

* [FAIL] Multiple elements to file.

* [FAIL] Multiple elements to non existent directory.

* [PASS] Multiple elements to directory, any src elements will be created/overwritten in dst.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL