Modify ListAll method's behavior for sftp and file.
To make sftp and file consistent with Object Storage , if the prefix is ends with / , prefix is the start point to traverse, otherwise the filepath.Dir(prefix) would be listed for the case like this:
temp
├── x
│ └── y
│ └── z.txt
├── xy
├── xy.txt
└── xyz
└── xyz.txt
Head
method forObjectStorage
and removeExists
method. TheExists
method can be replaced like this:ListAll
method's behavior forsftp
andfile
. To makesftp
andfile
consistent with Object Storage , if theprefix
is ends with/
,prefix
is the start point to traverse, otherwise thefilepath.Dir(prefix)
would be listed for the case like this:where the
prefix
is./temp/x
.