1) Avoid duplication of code between dls.py and FileCatalogClientCLI.py.
Move class DirectoryListing into new file CLIUtilities. In fact, after second commit,
dls doesn't depend on CLIUtilities.py.
2) Pass all arguments to fcCLI:do_ls with just one function call.
Closing because this pull is connected with a pull on DIRAC (https://github.com/DIRACGrid/DIRAC/pull/2734) which has being rejected: that PR was rejected mainly because it was on a old
DIRAC release.
The goal of present PR consist on:
1) Avoid duplication of code between dls.py and FileCatalogClientCLI.py. Move class DirectoryListing into new file CLIUtilities. In fact, after second commit, dls doesn't depend on CLIUtilities.py.
2) Pass all arguments to fcCLI:do_ls with just one function call.