Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 346480 - FileService creates empty subfolders
Summary: FileService creates empty subfolders
Status: CLOSED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Scout (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-05-19 11:30 EDT by Matthias Zimmermann CLA
Modified: 2021-08-19 11:19 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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