If you have a bucket that contains many files, ls can be extremely slow, because it has to read everything in the directory and then sort it. This is all largely pointless, since we just want to run an operation to force it to mount the directory. In this case, I've replaced the ls with a touch command that creates and then deletes an empty file, which hopefully would have the same effect.
If you have a bucket that contains many files,
ls
can be extremely slow, because it has to read everything in the directory and then sort it. This is all largely pointless, since we just want to run an operation to force it to mount the directory. In this case, I've replaced thels
with atouch
command that creates and then deletes an empty file, which hopefully would have the same effect.