D
D
Denis Stok2019-10-30 12:00:23
go
Denis Stok, 2019-10-30 12:00:23

Why is there an error in the tartar function?

When archiving a project, an error is thrown:

failed to add /root/Projects to tar: archive/tar: write too long

The source code is taken from this project
https://github.com/vladimirvivien/go-tar/blob/e1a9...
This is where the program stops
https://github.com/vladimirvivien/go-tar/blob/e1a9. ..
Thank you.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Denis Stok, 2019-10-30
@stokdenis

Found an error.
https://stackoverflow.com/questions/18062026/resol...
Because of the symlink, an error is thrown from the io package (does not read the file using symlinks).
And the error stops the execution of the program occurs here:
https://github.com/vladimirvivien/go-tar/blob/e1a9...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question