-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Using READDIRPLUS #2
Comments
Hi, well it's been 2 years from active delevoplent of the client. Why do you need the READDIRPLUS implementation ? I rly don't remember what are the correct attributes now. 2015-11-12 17:42 GMT+01:00 roman-himmelreich-sp notifications@github.com:
|
Hi, thank you for your reply. I need ReadDirPlus because we are building a Crawler for NFS. I see there is an implementation for it, but you did not use it in the client. If you could point me to where I can find the exact structure of the result that FolderEntry is trying to parse, maybe I can get it working. thanks for any help in advance! Sent from BlueMail On Nov 12, 2015, 8:19 PM, at 8:19 PM, DeCoRawr notifications@github.com wrote:
|
Hi, Eventually I found the problem, You were missing one Boolean read from the XDR stream and then the other read attempts were out of sync and everything failed. READDIRPLUS gives you the contents of a folder with item attributes - in one call. thanks for the source, it was really helpful! From: DeCoRawr notifications@github.com Hi, well it's been 2 years from active delevoplent of the client. Why do you need the READDIRPLUS implementation ? I rly don't remember what are the correct attributes now. 2015-11-12 17:42 GMT+01:00 roman-himmelreich-sp notifications@github.com:
Reply to this email directly or view it on GitHubhttps://github.com//issues/2#issuecomment-156189553. |
uf i totaly forgot about this. :S could you tell me where was this boolean missing ? 2015-12-08 18:11 GMT+01:00 roman-himmelreich-sp notifications@github.com:
|
Sure! On Dec 8, 2015, 7:35 PM, at 7:35 PM, DeCoRawr notifications@github.com wrote:
|
Hi, I made a few changes to make the MainForm work with READDIR_PLUS too so it doesn't need to issue a seperate request for the attributes of each file I would like to push the changes to git so you can see them but I have no permissions how does this work? is there some way I can publish this for you to see? From: DeCoRawr notifications@github.com Sent: Tuesday, December 8, 2015 7:35 PM uf i totaly forgot about this. :S could you tell me where was this boolean missing ? 2015-12-08 18:11 GMT+01:00 roman-himmelreich-sp notifications@github.com:
Reply to this email directly or view it on GitHubhttps://github.com//issues/2#issuecomment-162955175. |
I added you as contributor so you can push the changes now. Thanks for everything. DeCoRawr 2015-12-27 9:53 GMT+01:00 roman-himmelreich-sp notifications@github.com:
|
Hi,
There are two functions which list folder items: READDIR and READDIRPLUS Basically, READDIR only returns paths, READDIRPLUS returnes all other attributes.
When calling READDIRPLUS, there are two extra paramters that I can't understand how to use:
dircount
The maximum number of bytes of directory information to be returned. This number does not include the size of the attributes and file handle portions of the result.
maxcount
The maximum size of the READDIRPLUS3resok structure, in bytes. The size must include all XDR overhead. The server may return fewer than maxcount bytes of data.
No matter what I try, I can't seem to get it right.
Did anybody ever call this function succesfully?
The text was updated successfully, but these errors were encountered: