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
|
try
|
||||||
{
|
{
|
||||||
if (!System.IO.Directory.Exists(dir))
|
// Legt das Verzeichnis bei Bedarf an (idempotent). Funktioniert mit
|
||||||
{
|
// UNC-Pfaden (\\server\freigabe\...) - kein Netzlaufwerk noetig.
|
||||||
SetStatus("Gemeinsames Verzeichnis nicht erreichbar - synce ohne Sperre.");
|
System.IO.Directory.CreateDirectory(dir);
|
||||||
return SyncLock.NoOp();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
catch
|
catch
|
||||||
{
|
{
|
||||||
|
SetStatus("Gemeinsames Verzeichnis nicht erreichbar - synce ohne Sperre.");
|
||||||
return SyncLock.NoOp();
|
return SyncLock.NoOp();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user