Skip to content

tewilove/QCOM_sfs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 

Repository files navigation

SFS path mangling

  • sfs_mkdir(path)
def sfs_mangle(fn):
    hash = hashlib.sha1(fn.encode('utf-8')).digest()
    mn = bytearray(base64.b64encode(hash))
    # Replace "/" with "-", and "=" with "_"
    for i in range(0, len(mn)):
        c = mn[i]
        if c == 0x2f:
            mn[i] = ord('-')
        elif c == 0x3d:
            mn[i] = ord('_')
    mn = mn.decode('utf-8')
    return mn
  • SFS metadata
    • $(NAME).sfs0
    • $(NAME).sfs%lx
    • $(NAME).b
    • $(NAME).b.sfs%lx
    • $(NAME).index

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages