mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-05-13 08:26:56 +00:00
...
This commit is contained in:
parent
ecc241d891
commit
a5940b4eb1
1 changed files with 5 additions and 0 deletions
|
|
@ -435,6 +435,11 @@ func copy_file_and_close(ctx context.Context, src *os.File, dest *os.File) (err
|
|||
// Existing regular files are overwritten, without changing their permissions.
|
||||
// Existing directories also do not have their permissions updated.
|
||||
func CopyFolderContents(ctx context.Context, src_folder *os.File, dest_folder *os.File, opts CopyFolderOptions) (final_error error) {
|
||||
// Ensure we get all dir contents
|
||||
_, err := src_folder.Seek(0, io.SeekStart)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
// When following symlinks, store previously seen source items with the
|
||||
// abspaths they have been copied to in dest. Items are identified with
|
||||
// device + inode number which should be globally unique. This ensures 1)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue