don't allow error from making dir
This commit is contained in:
parent
0607514b3b
commit
e16407f5cf
|
|
@ -148,10 +148,7 @@ func (s *Session) receiveData(pathToFile string, fileSize int64) error {
|
|||
log.Debugf("receiving %s", pathToFile)
|
||||
|
||||
folderForFile, _ := filepath.Split(pathToFile)
|
||||
err := os.MkdirAll(folderForFile, os.ModePerm)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
os.MkdirAll(folderForFile, os.ModePerm)
|
||||
|
||||
// truncate if nessecary
|
||||
var f *os.File
|
||||
|
|
|
|||
Loading…
Reference in New Issue