Add -d and -q
This commit is contained in:
parent
d229015710
commit
0fe0b1d05a
6 changed files with 96 additions and 68 deletions
|
|
@ -66,14 +66,14 @@ def size(path):
|
|||
if stat.S_ISBLK(pathstat.st_mode):
|
||||
return open(path, 'rb').seek(0, os.SEEK_END)
|
||||
|
||||
# Otherwise, it's hopefully file
|
||||
# Otherwise, it's hopefully a file
|
||||
|
||||
return pathstat.st_size
|
||||
|
||||
|
||||
def read_seven_bit_encoded_int(fileobj, order):
|
||||
"""Read an Int32, 7 bits at a time."""
|
||||
# The highest bit of the byte when on, means to continue reading more bytes.
|
||||
# The highest bit of the byte, when on, means to continue reading more bytes.
|
||||
count = 0
|
||||
shift = 0
|
||||
byte = -1
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue