Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 317290 - Need for method to get File Separator for a File system related to IResource and IFileStore
Summary: Need for method to get File Separator for a File system related to IResource ...
Status: CLOSED WONTFIX
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Resources (show other bugs)
Version: 3.4.1   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Platform-Resources-Inbox CLA
QA Contact:
URL:
Whiteboard: stalebug
Keywords:
Depends on:
Blocks:
 
Reported: 2010-06-18 07:52 EDT by Loganathan CLA
Modified: 2019-06-02 01:36 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Loganathan CLA 2010-06-18 07:52:39 EDT
Build Identifier: M20080911-1700

I am working on an application that uses EFS for handling resources both locally and remotely. When I tried to create an IFileStore for a URI, I need to supply the  path along proper File seperator. Improper file seperator is not allowed in creating IFileStore handle. But I couldn't able to get the appropriate File separator from/using the IFileStore instance.

I can't use File.separator or System.getPropety("line.separator") because the Resource i refer need not be my local machine or remote machine. I cant check for the system which is in use in all the places where I need to get the corresponding File separator of the file system or machine.

With the IResource or IFileStore in hand, I also need to create new IResource/IFileStores, which needs to get File Seperator for the file system that corresponds to the file system associated with IResource/IFileStores.

I guess adding a getPathSeparator() method at URI or in any other appropriate classes will do.

Thanks.

Reproducible: Always

Steps to Reproduce:
Try to get file separator for an IFile or IFileStore which corresponds to a local/remote machine.
Comment 1 Eclipse Genie CLA 2019-06-02 01:36:51 EDT
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

--
The automated Eclipse Genie.