Cute trick. If I don't use the -F flag on ls, the directory " "/ comes through with blank, the '/' is stripped away. I wonder if you could use a non-printing character rather than a space before the slash?