Use nil pointer to indicate missing device ID (rather than FSMisc)

This commit is contained in:
2026-01-21 18:49:16 -05:00
parent 48e084ac0f
commit 409db78d83
5 changed files with 48 additions and 31 deletions
+5
View File
@@ -42,6 +42,11 @@ type RegisterRespT struct {
IsWindows bool `json:"isWindows"`
}
type RegisterReqT struct {
NewDeviceID string `json:"newDeviceID"`
OldDeviceID *string `json:"oldDeviceID"` // nil if not replacing an existing device ID
}
// GetAllEntryData returns a map of all vanity paths to
// their respective containing folders and mod+age timestamps.
func GetAllEntryData() (EntryMapT, error) {