@@ -31,7 +31,7 @@ import (
"os"
"path"
"path/filepath"
- "runtime/debug"
+ "runtime"
"sort"
"strconv"
"strings"
@@ -708,8 +708,9 @@ func ImportFromLocalPath(boxID, localPath string, toPath string) (err error) {
}
IncSync()
- debug.FreeOSMemory()
+
+ runtime.GC()
return
@@ -21,7 +21,6 @@ import (
"fmt"
"time"
"unicode/utf8"
@@ -132,7 +131,6 @@ func unmount0(boxID string) {
boxConf.Closed = true
box.SaveConf(boxConf)
box.Unindex()
func Mount(boxID string) (alreadyMount bool, err error) {