Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(2)  |  Call(0)  |  Derive(0)  |  Import(2)

src/a/r/archiwe-0.9.0/archiwe/store/read/zip.py   archiwe(Download)
from hakmatak.constant import DATA
 
from archive import SIZE,TYPE,MTIME
from archive import Archive
 
                    nodes = nodes[x][NODES]
                parent[ATTRS] = [
                    {NAME:SIZE,VALUE:zipinfo.file_size},
                    # in zip, there is no concept of dir?
                    #{NAME:TYPE,VALUE:zipinfo.type}, 
                    parent[LEAVES][l[-1]] = {}
                    parent[LEAVES][l[-1]][ATTRS] = [
                        {NAME:SIZE,VALUE:zipinfo.file_size},
                        # no type concept?
                        #{NAME:TYPE,VALUE:zipinfo.type},

src/a/r/archiwe-0.9.0/archiwe/store/read/tar.py   archiwe(Download)
from hakmatak.constant import DATA
 
from archive import SIZE,TYPE,MTIME
from archive import Archive
 
                    nodes = nodes[x][NODES]
                parent[ATTRS] = [
                    {NAME:SIZE,VALUE:tarinfo.size},
                    #{NAME:TYPE,VALUE:tarinfo.type},
                    {NAME:MTIME,VALUE:timestamp_to_isoformat(tarinfo.mtime)}
                    parent[LEAVES][l[-1]] = {}
                    parent[LEAVES][l[-1]][ATTRS] = [
                        {NAME:SIZE,VALUE:tarinfo.size},
                        #{NAME:TYPE,VALUE:tarinfo.type},
                        {NAME:MTIME,VALUE:timestamp_to_isoformat(tarinfo.mtime)}