blob: 67379ae023484bd9c97d907b2d456dbdaea4e488 [file] [log] [blame]
package copy
import (
"fmt"
"os"
)
func ExampleCopy() {
err := Copy("testdata/example", "testdata.copy/example")
fmt.Println("Error:", err)
info, _ := os.Stat("testdata.copy/example")
fmt.Println("IsDir:", info.IsDir())
// Output:
// Error: <nil>
// IsDir: true
}