mirror of
https://github.com/rclone/rclone.git
synced 2024-11-22 08:23:47 +01:00
Use ObjectsAll and ContainersAll to see everything
This commit is contained in:
parent
31745ac13b
commit
ba24b84396
@ -18,3 +18,9 @@ FIXME progress meter would be nice! Do this by wrapping the Reader with a progre
|
||||
Do bandwidth limit by wrapping the Reader too
|
||||
|
||||
Could have an integrity check mode where we check the MD5sums of the local vs the remote
|
||||
|
||||
Some stats would be nice!
|
||||
|
||||
Windows paths? Do we need to translate / and \?
|
||||
|
||||
Make swift timeouts be settable
|
||||
|
@ -231,7 +231,7 @@ func upload(c *swift.Connection, root, container string) {
|
||||
|
||||
// Lists the containers
|
||||
func listContainers(c *swift.Connection) {
|
||||
containers, err := c.Containers(nil)
|
||||
containers, err := c.ContainersAll(nil)
|
||||
if err != nil {
|
||||
log.Fatalf("Couldn't list containers: %s", err)
|
||||
}
|
||||
@ -242,8 +242,8 @@ func listContainers(c *swift.Connection) {
|
||||
|
||||
// Lists files in a container
|
||||
func list(c *swift.Connection, container string) {
|
||||
//objects, err := c.Objects(container, &swift.ObjectsOpts{Prefix: "", Delimiter: '/'})
|
||||
objects, err := c.Objects(container, nil)
|
||||
//objects, err := c.ObjectsAll(container, &swift.ObjectsOpts{Prefix: "", Delimiter: '/'})
|
||||
objects, err := c.ObjectsAll(container, nil)
|
||||
if err != nil {
|
||||
log.Fatalf("Couldn't read container %q: %s", container, err)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user