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 ¶
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.