commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bernd Eckenfels <e...@zusammenkunft.net>
Subject Re: FTPFile check if path is absolute
Date Thu, 14 Sep 2017 06:05:27 GMT
VFS has no real/clear concept of relative file path (at least not for FileName or File objects).
For some providers (like FTP) there are some hacks in regards to login directories. So yes
maybe isAbsolute() can and should be implemented, however it is not clear how.

Do you have a specific usecase?

Gruss
Bernd

Gruss
Bernd
--
http://bernd.eckenfels.net
________________________________
From: Onder SEZGIN <onders@apache.org>
Sent: Thursday, September 14, 2017 7:39:59 AM
To: user@commons.apache.org
Subject: FTPFile check if path is absolute

Hi,

When i check;

https://github.com/apache/commons-net/blob/trunk/src/main/java/org/apache/commons/net/ftp/FTPFile.java

This class does not have such a method like .isAbsolute().

Is there a specific reason why we dont have such method?
Or do you have a suggested way to do such check?

Thanks
├ľnder

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message