Skip to content

Commit 81bf2b0

Browse files
committed
camtosql: Fix account name detection with characters in subfolders
1 parent 327f70c commit 81bf2b0

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

camtosql/source/app.d

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,11 @@ int main(string[] args){
153153
bench.start;
154154
foreach(charFile ; vaultPath.dirEntries(SpanMode.depth)){
155155
if(charFile.extension.toLower == ".bic"){
156-
auto accName = charFile.dirName.baseName;
156+
auto accName = charFile
157+
.absolutePath
158+
.relativePath(vaultPath.absolutePath)
159+
.pathSplitter()
160+
.front();
157161

158162
auto c = new FastGff(charFile);
159163
auto fname = c["FirstName"].to!string;

0 commit comments

Comments
 (0)