Explorar o código

Local Server Folder List: fix ftp download URL creation

Felix Paul Kühne %!s(int64=12) %!d(string=hai) anos
pai
achega
77fd9eabf3
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      AspenProject/VLCLocalServerFolderListViewController.m

+ 1 - 1
AspenProject/VLCLocalServerFolderListViewController.m

@@ -265,7 +265,7 @@
 
 - (void)_downloadFTPFile:(NSString *)fileName
 {
-    NSURL *URLToQueue = [NSURL URLWithString:[[@"ftp" stringByAppendingFormat:@"://%@%@/%@", [self _credentials], _ftpServerAddress, _ftpServerPath] stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding]];
+    NSURL *URLToQueue = [NSURL URLWithString:[[@"ftp" stringByAppendingFormat:@"://%@%@/%@/%@", [self _credentials], _ftpServerAddress, _ftpServerPath, fileName] stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding]];
 
     [[(VLCAppDelegate*)[UIApplication sharedApplication].delegate downloadViewController] addURLToDownloadList:URLToQueue];
 }