Thanks a lot, Niklas for your quick reply.

You are right, my view implementation did not construct that currentDir. Thanks 
again for the help.
I have just checked the NativeFtpFile view implementation. I think the rootPath 
constructions should be similar.

Regards,
Uma

-----Original Message-----
From: Niklas Gustavsson [mailto:[email protected]] 
Sent: 09 July 2013 21:05
To: [email protected]
Subject: Re: LIST command behaviour

On Wed, Jul 10, 2013 at 7:56 AM, Uma Maheswara Rao G <[email protected]> 
wrote:
>   I am implementing HDFSFileSystemView instead of NativeFileSystemView. Most 
> of the commands working with my changes. I met one scenario when I try to 
> connect to FTPServer via FileZilla client.
> When I try to open one particular folder, it is sending CWD command first to 
> change the currentWorking directory. Things are happening fine. The current 
> directory changed to the specified folder excluding root path.
> Next command would be LIST command. Here looks like FileZilla does not 
> specify the arguments. So, as per the documentation of LIST command, if 
> argument is null, it should list the files from currentWorkingDirectory. But 
> here I am seeing that Passed argement coming up with root path. So, list 
> command is always giving the listing result root path only.  I am not sure I 
> missed something here.
>
>    // parse argument
>    ListArgument parsedArg = ListArgumentParser.parse(request
>      .getArgument());
>
> Any idea what could be the behavior here?

Not sure I follow. Your view implementation must keep state on what's the cwd 
and merge that with parsedArg.getFile() in the code above.
What am I missing here?

/niklas

Reply via email to