refactor(rest, cloudcmd) getDirContent