Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 346480

Summary: FileService creates empty subfolders
Product: z_Archived Reporter: Matthias Zimmermann <zimmermann>
Component: ScoutAssignee: Project Inbox <scout.core-inbox>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Matthias Zimmermann CLA 2011-05-19 11:30:58 EDT
FileService.syncRemoteFilesToPath doesn't work properly.
when calling syncRemoteFilesToPath("c:\offline\triggers","offline\triggers", null)
the content of the folder is correctly copied on the server but at the same time an empty subfolder c:\offline\triggers\offline\triggers is created.

Most likely reason (in German only):
Der Grund dafür scheint der Aufruf auf Zeile 164 zu sein:
File f = getFileLocation(realFiles[i][0], realFiles[i][1], false);
Hier ist realFiles[i][0] = "offline/triggers" und realFiles[i][1] der Filename.

Meiner Meinung nach sollte hier aber der leere String übergeben werden, da getFileLocation ausgehend vom Basispfad c:\offline\triggers noch das erste Argument anhängt und damit den falschen Ordner bastelt.
Comment 1 Matthias Zimmermann CLA 2011-05-19 11:31:23 EDT
fixed on 5.4.11, #93948
Comment 2 Matthias Zimmermann CLA 2011-06-28 09:02:40 EDT
shipped with eclipse scout 3.7.0