mirror of
https://github.com/rclone/rclone.git
synced 2026-01-04 09:33:36 +00:00
union: fix indent
This commit is contained in:
@@ -111,7 +111,7 @@ func findEntry(ctx context.Context, f fs.Fs, remote string) fs.DirEntry {
|
||||
return nil
|
||||
}
|
||||
// random modtime for root
|
||||
randomNow := time.Unix(time.Now().Unix() - rand.Int63n(10000), 0)
|
||||
randomNow := time.Unix(time.Now().Unix() - rand.Int63n(10000), 0)
|
||||
return fs.NewDir("", randomNow)
|
||||
}
|
||||
found := false
|
||||
|
||||
@@ -250,7 +250,7 @@ func (f *Fs) Move(ctx context.Context, src fs.Object, remote string) (fs.Object,
|
||||
errs := make([]error, len(entries))
|
||||
multithread(len(entries), func(i int){
|
||||
u := entries[i].UpstreamFs()
|
||||
o, ok := entries[i].(*upstream.Object);
|
||||
o, ok := entries[i].(*upstream.Object);
|
||||
if !ok {
|
||||
errs[i] = fs.ErrorNotAFile
|
||||
return
|
||||
@@ -390,7 +390,7 @@ func (f *Fs) put(ctx context.Context, in io.Reader, src fs.ObjectInfo, stream bo
|
||||
}
|
||||
go func() {
|
||||
mw := io.MultiWriter(writers...)
|
||||
io.Copy(mw, in)
|
||||
io.Copy(mw, in)
|
||||
for _, bw := range writers {
|
||||
bw.(*bufio.Writer).Flush()
|
||||
}
|
||||
|
||||
@@ -21,10 +21,10 @@ var (
|
||||
)
|
||||
|
||||
const (
|
||||
unInitilized uint32 = iota
|
||||
initilizing
|
||||
normal
|
||||
updating
|
||||
unInitilized uint32 = iota
|
||||
initilizing
|
||||
normal
|
||||
updating
|
||||
)
|
||||
|
||||
// Fs is a wrap of any fs and its configs
|
||||
|
||||
Reference in New Issue
Block a user