Files
Firelink/src/utils/torrentFilePath.ts
T
NimBold de41dd55d6 fix(torrent): harden metadata reuse and live peer telemetry
- reuse validated tracker-bearing metainfo without restoring direct web seeds
- preserve Torrent file selection while making long paths scrollable and copyable
- add lifecycle-fenced peer and seeder summaries to Properties telemetry
- validate cache tracker metadata and cover malformed, stale, and path-copy cases
2026-08-14 13:13:06 +03:30

10 lines
285 B
TypeScript

export type ClipboardWriter = (text: string) => Promise<void>;
/** Copy the exact Torrent-relative path without normalizing or truncating it. */
export const copyTorrentFilePath = async (
path: string,
writeText: ClipboardWriter,
): Promise<void> => {
await writeText(path);
};