Support UNC paths for shared lock directory; create it if missing
Das gemeinsame Verzeichnis darf ein UNC-Pfad sein (\\server\freigabe\...), kein Netzlaufwerksbuchstabe noetig. Statt nur Directory.Exists zu pruefen (und sonst still ohne Sperre zu syncen) wird das Verzeichnis bei Bedarf angelegt; nur bei echtem Zugriffsfehler wird ohne Sperre fortgefahren. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -414,14 +414,13 @@ namespace StarfaceOutlookSync.UI
|
||||
|
||||
try
|
||||
{
|
||||
if (!System.IO.Directory.Exists(dir))
|
||||
{
|
||||
SetStatus("Gemeinsames Verzeichnis nicht erreichbar - synce ohne Sperre.");
|
||||
return SyncLock.NoOp();
|
||||
}
|
||||
// Legt das Verzeichnis bei Bedarf an (idempotent). Funktioniert mit
|
||||
// UNC-Pfaden (\\server\freigabe\...) - kein Netzlaufwerk noetig.
|
||||
System.IO.Directory.CreateDirectory(dir);
|
||||
}
|
||||
catch
|
||||
{
|
||||
SetStatus("Gemeinsames Verzeichnis nicht erreichbar - synce ohne Sperre.");
|
||||
return SyncLock.NoOp();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user