orientechnologies/orientdb — pull request #1931 by kowalot (2014-01-05 22:11:39+00:00)
Title: list databases command may result with databases names without first letter

It's happened due to assumption that rootDirectory is substring of dbPath, which actually aren't.

Vars to reproduce the bug:

rootDirectory = "e:\\JavaProjects\\OrientDB-kowalot\\releases\\orientdb-1.6.0-SNAPSHOT\\/databases/"
dbPath = "e:/JavaProjects/OrientDB-kowalot/releases/orientdb-1.6.0-SNAPSHOT/databases/ConcurrentDocUpdateDb"