Skip to content

Commit 0c50bd0

Browse files
committed
fix: solve folder problem
1 parent 8baf50c commit 0c50bd0

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

TelegramDownloader/Data/FileService.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1623,7 +1623,7 @@ public async Task UploadFileFromServer(string dbName, string currentPath, List<S
16231623
model.HasChild = false;
16241624
model.DateCreated = DateTime.Now;
16251625
model.DateModified = DateTime.Now;
1626-
model.FilterPath = (parent.FilterPath == "" || parent.FilterPath == "/")
1626+
model.FilterPath = parent.FilterPath == ""
16271627
? "/"
16281628
: string.Concat(parent.FilterPath, parent.Name, "/");
16291629
model.FilterId = string.Concat(parent.FilterId, parent.Id.ToString(), "/");
@@ -1881,7 +1881,7 @@ public async Task UploadFile(string dbName, string currentPath, UploadFiles file
18811881
model.HasChild = false;
18821882
model.DateCreated = DateTime.Now;
18831883
model.DateModified = DateTime.Now;
1884-
model.FilterPath = (parent.FilterPath == "" || parent.FilterPath == "/")
1884+
model.FilterPath = parent.FilterPath == ""
18851885
? "/"
18861886
: string.Concat(parent.FilterPath, parent.Name, "/");
18871887
model.FilterId = string.Concat(parent.FilterId, parent.Id.ToString(), "/");

0 commit comments

Comments
 (0)