forked from narayana.im/telegabber
fix copy telegram/utils
This commit is contained in:
parent
ffa8c72379
commit
d1fdf6208c
1 changed files with 1 additions and 1 deletions
|
|
@ -582,7 +582,7 @@ func (c *Client) PermastoreFile(file *client.File, clone bool) (string, string)
|
|||
}
|
||||
} else {
|
||||
// move
|
||||
err = os.Rename(src, dest)
|
||||
err = os.copyFile(src, dest)
|
||||
if err != nil {
|
||||
linkErr := err.(*os.LinkError)
|
||||
if linkErr.Err.Error() == "file exists" {
|
||||
|
|
|
|||
Loading…
Reference in a new issue