Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork939
Fix typo in tutorial#115
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
040000 | ||
'%o' % htc.blobs[0].mode # blobs have a specific mode though comparable to a standard linux fs | ||
hct.mode # trees have the mode of a linux directory | ||
16384 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
To respect the original example, this change is more suitable.
oct(hct.mode)'040000'oct(hct.blobs[0].mode)'0100644'
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
Thanks. I didn't knowoct()
.
I agree with@Kroisse. |
I fixed typo and wrong representation of tree mode in tutorial.
htc
is a obvious typo ofhct
andhct.mode
is an octal value, so it must be 16384, not 040000 without%06o
.