mina-ftpserver-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sai Pullabhotla <sai.pullabho...@jmethods.com>
Subject Re: problem with symlink
Date Thu, 06 Dec 2012 20:46:40 GMT
Your best bet is to implement the FileSystemView or extend the
NativeFileSystem and override the listFiles method to omit symlinks. For
Java 1.6 and earlier versions, below is a link to figure out if a file is a
symlink. Not sure if it works on all OSes, but should work on *NIX systems.
If using Java 1.7, I believe there are APIs to do this.


If you do not want to write your own implementation, then you can provide a
patch with a configurable parameter so the NativeFileSystem would
include/exclude symlinks.

Hope this helps.


On Thu, Dec 6, 2012 at 11:33 AM, Milos Novakovic <milosnew@gmail.com> wrote:

> Does anyone know, how symlinks should be disabled?
> Thanks.
> --
> Best regards,
> Mr Milos M. Novakovic, dip. ing. el.

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