Support File Move Operations with Watcher Refactor for Accurate Tracking

This commit is contained in:
aditya.chandel
2025-07-04 11:19:23 -06:00
committed by Aditya Chandel
parent 1c9c09628a
commit 841e359b92
73 changed files with 3714 additions and 852 deletions
@@ -120,7 +120,16 @@ export class LibraryService {
return this.libraryStateSubject.value.libraries || [];
}
getAllLibrariesFromAPI(): Observable<Library[]> {
return this.http.get <Library[]>(`${this.url}`);
getLibraryPathById(pathId: number): string | undefined {
const libraries = this.libraryStateSubject.value.libraries || [];
for (const library of libraries) {
const match = library.paths.find(p => p.id === pathId);
if (match) {
return match.path;
}
}
return undefined;
}
}