MCPcopy Create free account

hub / github.com/otiai10/copy / functions

Functions62 in github.com/otiai10/copy

↓ 68 callersFunctionCopy
Copy copies src to dest, doesn't matter if src is a directory or a file.
copy.go:22
↓ 5 callersFunctiononError
onError lets caller to handle errors occurred when copying a file.
copy.go:346
↓ 4 callersFunctioncopyNextOrSkip
copyNextOrSkip decide if this src should be copied or not. Because this "copy" could be called recursively, "info" MUST be given here, NOT nil.
copy.go:72
↓ 3 callersFunctionswitchboard
switchboard switches proper copy functions regarding file type, etc... If there would be anything else here, add a case to this switchboard.
copy.go:44
↓ 2 callersFunctionfclose
fclose ANYHOW closes file, with assigning error raised during Close, BUT respecting the error already reported.
copy.go:338
↓ 2 callersFunctionpreserveLtimes
(src, dest string)
preserve_ltimes.go:9
↓ 2 callersFunctionpreserveOwner
(src, dest string, info fs.FileInfo)
preserve_owner.go:11
↓ 2 callersFunctionpreserveTimes
(srcinfo os.FileInfo, dest string)
preserve_times.go:5
↓ 1 callersFunctionassureOptions
assureOptions struct, should be called only once. All optional values MUST NOT BE nil/zero after assured.
options.go:145
↓ 1 callersFunctionchmod
chmod ANYHOW changes file mode, with assigning error raised during Chmod, BUT respecting the error already reported.
permission_control.go:45
↓ 1 callersFunctiondcopy
dcopy is for a directory, with scanning contents inside the directory and pass everything to "copy" recursively.
copy.go:161
↓ 1 callersFunctiondcopyConcurrent
Copy this directory concurrently regarding semaphore of opt.intent
copy.go:240
↓ 1 callersFunctiondcopySequential
(srcdir, destdir string, contents []os.FileInfo, opt Options)
copy.go:227
↓ 1 callersFunctionfcopy
fcopy is for just a file, with considering existence of parent directory and file permission.
copy.go:88
↓ 1 callersFunctiongetDefaultOptions
getDefaultOptions provides default options, which would be modified by usage-side.
options.go:124
↓ 1 callersFunctiongetTimeSpec
(info os.FileInfo)
stat_times.go:13
↓ 1 callersFunctionlcopy
lcopy is for a symlink, with just creating a new symlink by replicating src symlink.
copy.go:313
↓ 1 callersFunctiononDirExists
(opt Options, srcdir, destdir string)
copy.go:263
↓ 1 callersFunctiononsymlink
(src, dest string, opt Options)
copy.go:280
↓ 1 callersFunctionpcopy
pcopy is for just named pipes
copy_namedpipes.go:12
↓ 1 callersFunctionsetup
(m *testing.M)
test_setup_test.go:11
↓ 1 callersFunctionshouldCopyDirectoryConcurrent
(opt Options, srcdir, destdir string)
options.go:166
↓ 1 callersFunctionteardown
(m *testing.M)
all_test.go:27
FunctionBenchmarkOptions_NumOfWorkers_0
(b *testing.B)
benchmark_test.go:8
FunctionBenchmarkOptions_NumOfWorkers_2
(b *testing.B)
benchmark_test.go:16
FunctionBenchmarkOptions_NumOfWorkers_4
(b *testing.B)
benchmark_test.go:24
FunctionBenchmarkOptions_NumOfWorkers_8
(b *testing.B)
benchmark_test.go:32
FunctionExampleCopy
()
example_test.go:9
FunctionExampleOptions
()
example_test.go:21
MethodRead
(p []byte)
all_test.go:433
FunctionTestCopy
(t *testing.T)
all_test.go:37
FunctionTestCopy_NamedPipe
(t *testing.T)
all_test.go:140
FunctionTestCopy_PathError
(t *testing.T)
patherror_test.go:14
FunctionTestMain
(m *testing.M)
all_test.go:20
FunctionTestOptions_CopyBufferSize
(t *testing.T)
all_test.go:334
FunctionTestOptions_CopyRateLimit
(t *testing.T)
all_test.go:353
FunctionTestOptions_FS
(t *testing.T)
all_test.go:419
FunctionTestOptions_NumOfWorkers
(t *testing.T)
all_test.go:444
FunctionTestOptions_OnDirExists
(t *testing.T)
all_test.go:277
FunctionTestOptions_OnFileError
(t *testing.T)
all_test.go:379
FunctionTestOptions_OnSymlink
(t *testing.T)
symlink_test.go:12
FunctionTestOptions_OnSymlink
(t *testing.T)
symlink_test_x.go:12
FunctionTestOptions_PermissionControl
(t *testing.T)
all_test.go:221
FunctionTestOptions_PreferConcurrent
(t *testing.T)
all_test.go:450
FunctionTestOptions_PreserveLTimes
(t *testing.T)
preserve_ltimes_x_test.go:12
FunctionTestOptions_PreserveLTimes
(t *testing.T)
preserve_ltimes_test.go:13
FunctionTestOptions_PreserveLTimesErrorReturn
(t *testing.T)
preserve_ltimes_test.go:30
FunctionTestOptions_PreserveOwner
(t *testing.T)
all_test.go:347
FunctionTestOptions_PreserveTimes
(t *testing.T)
all_test.go:258
FunctionTestOptions_RenameDestination
(t *testing.T)
all_test.go:458
FunctionTestOptions_Skip
(t *testing.T)
all_test.go:168
FunctionTestOptions_Specials
(t *testing.T)
all_test.go:214
FunctionTestOptions_Sync
(t *testing.T)
all_test.go:250
FunctiongetTimeSpec
(info os.FileInfo)
stat_times_darwin.go:11
FunctiongetTimeSpec
(info os.FileInfo)
stat_times_windows.go:11
FunctiongetTimeSpec
(info os.FileInfo)
stat_times_freebsd.go:11
FunctiongetTimeSpec
(info os.FileInfo)
stat_times_js.go:11
FunctiongetTimeSpec
TODO: check plan9 netbsd in future
stat_times_x.go:10
Functionpcopy
TODO: check plan9 netbsd aix illumos solaris in future pcopy is for just named pipes. Windows doesn't support them
copy_namedpipes_x.go:12
FunctionpreserveLtimes
(src, dest string)
preserve_ltimes_x.go:5
FunctionpreserveOwner
(src, dest string, info fs.FileInfo)
preserve_owner_x.go:7
Functionsetup
(m *testing.M)
test_setup_x_test.go:10