commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sven Homburg <Sven.Homb...@hsofttec.com>
Subject Fwd: [VFS] ftp transfer with limited directory access
Date Sat, 07 Jan 2006 19:21:08 GMT
hi folks,

if i comment out the source line:
final FileName rootName = getContext().getFileSystemManager().resolveName(name, FileName.ROOT_PATH);

in class AbstractOriginatingFileProvider
everything is running fine but i must admit that i dont understand the sense of that codeline.

    /**
     * Locates a file from its parsed URI.
     */
    protected synchronized FileObject findFile(final FileName name, final FileSystemOptions
fileSystemOptions)
        throws FileSystemException
    {
        // Check in the cache for the file system
        // final FileName rootName = getContext().getFileSystemManager().resolveName(name,
FileName.ROOT_PATH);
        FileSystem fs = findFileSystem(name, fileSystemOptions);
        if (fs == null)
        {
            // Need to create the file system, and cache it
            fs = doCreateFileSystem(name, fileSystemOptions);
            addFileSystem(name, fs);
        }

        // Locate the file
        return fs.resolveFile(name.getPath());
    }


----------  Weitergeleitete Nachricht  ----------

Subject: [VFS] ftp transfer with limited directory access
Date: Saturday 07 January 2006 02:52
From: Sven Homburg <Sven.Homburg@hsofttec.com>
To: commons-user@jakarta.apache.org

hi folks,

i try to connect via ftp to a server with this uri : ftp://johndoe:mypass@195.60.99.6/depotxxx/depot120
the user johndoe has only access to this directory but VFS tries to access the depotxxx and
the root dir
how can solve this problem ?

-- 
with best regards

homburg Softwaretechnik
S.Homburg
21220 Seevetal / GERMANY
Fon: +49-4105-669746
Fax: +49-4105-668947


-------------------------------------------------------

-- 
with best regards

homburg Softwaretechnik
S.Homburg
21220 Seevetal / GERMANY
Fon: +49-4105-669746
Fax: +49-4105-668947

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org


Mime
View raw message