Subject: sftp open directory

From: Andriy Melnyk <[email-masked]>
Date: Tue, 30 Jun 2009 17:57:00 +0300

Hi,
Could someone explain me the following:
SSH File Transfer Protocol draft-ietf-secsh-filexfer-13.txt section 8.1.2.
Opening a Directory says: *To enumerate a directory, the client first
obtains a handle and then issues directory read requests. When enumeration
is complete, the handle MUST be closed.*

Is it mean that when server receives twice OPEN_DIR command for the same
directory then for the second one it should responds with
FXP_STATUS(operation fails) because the first one was not closed with
FXP_CLOSE?
What is the correct behaviour?