Fix GenerateIndex for gsutil directories by stripping colon off directory names.

The gsutil ls -L will recursively list the contents of a directory.
Subdirectories are listed with a ':' after them like this: 'subdir/:' with their
contents listed under it. When recursing gsutil will fail on directories that
end with '/:'. This CL strips the colon from that output.

Also looked into:
gsutil ls -r (and -R) dir: still puts the colon at the end
gsutil ls -L dir/** (for flat listing): does not list sub directories at all;
 only shows the files.

Review URL: https://chromiumcodereview.appspot.com/11348025

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/gsd_generate_index@164784 0039d316-1c4b-4281-b951-d872f2087c98
1 file changed
tree: 80a3711dc59cccf42088efdd17ba7d66514e9f5a
  1. gsd_generate_index.py