Community
Participate
Working Groups
If you create a file with the name fred\bob in a project and folder with path /proj/folder You will get a file called fred\bob in Eclipse but the file system will create a folder /proj/folder/fred with a file bob Core should be consistent with the file system. NOTES: JM (7/25/2001 11:36:56 AM) Please supply exact steps to recreate.
PRODUCT VERSION: 0.9
Current behaviour is that it fails, saying folder "fred" does not exist. Core behaviour is working as designed. Core interprets java.io.File.separatorChar as a path separator. Moving PR to UI. They could be slightly nicer to the user by checking this value as the user types. They could either search for File.separatorChar, or call IWorkspace#validateName on the exact text entered in the box. UI currently calls IWorkspace#validatePath, which splits the passed path into segments (in this case "fred" and "bob" get separated), then validates each name.
Validation is now done using the path and files with a \ in thier name are now created in directories.