When FileSystemStore#getFileNames is called with a dirName which ends in a slash (a valid path name), the returned file names contain a double slash (an invalid path name).
store.getFileNames(companyId, repositoryId, "directory") => ["directory/1", "directory/2"]
store.getFileNames(companyId, repositoryId, "directory/") => ["directory//1", "directory//2"]
Store methods should either fail when a dirName with a trailing slash is provided, or properly handle it.
This is not reproducible by normal portal usage.