From c0296b60204b000142091be72d11a547ac78bafe Mon Sep 17 00:00:00 2001 From: zontreck Date: Tue, 2 Jul 2024 16:36:43 -0700 Subject: [PATCH] Fix retrieval of only file names --- lib/packets/ClientPackets.dart | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/packets/ClientPackets.dart b/lib/packets/ClientPackets.dart index 219e0e5..97f7748 100644 --- a/lib/packets/ClientPackets.dart +++ b/lib/packets/ClientPackets.dart @@ -503,8 +503,8 @@ class C2SRequestSnapshotList implements IPacket { // add file name without db extension to the list String trimmedFileName = str.trim().substring(0, str.trim().length - 3); - strippedFiles - .add(trimmedFileName.substring(trimmedFileName.lastIndexOf("/"))); + strippedFiles.add( + trimmedFileName.substring(trimmedFileName.lastIndexOf("/") + 1)); } else { strippedFiles.add(str); }