Skip to content
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

We can't yet differentiate between a file and a directory #13

Open
ross-spencer opened this issue Nov 30, 2020 · 0 comments
Open

We can't yet differentiate between a file and a directory #13

ross-spencer opened this issue Nov 30, 2020 · 0 comments

Comments

@ross-spencer
Copy link
Member

The three ole2 files:

  • fmt-1371-container-signature-id-48000.opd
  • fmt-1372-container-signature-id-48010.opd
  • fmt-1373-container-signature-id-48020.opd

Have signature syntax like:

        <ContainerSignature Id="48000" ContainerType="OLE2">
            <Description>Omnipage 10 Document</Description>
            <Files>
                <File>
                    <Path>PageManager/page1</Path>
                </File>
                <File>
                    <Path>Version/Data</Path>
                    <BinarySignatures>
                        <InternalSignatureCollection>                    
                            <InternalSignature ID="48000">
                                <ByteSequence Reference="BOFoffset">
                                    <SubSequence Position="1" SubSeqMinOffset="0" SubSeqMaxOffset="0">
                                        <Sequence>04 01 00 00 65 00 00 00 43 61 65 72 65 20 4F 6D 6E 69 70 61 67 65 20 4F 50 44 20 31 30 2E 30</Sequence>
                                    </SubSequence>
                                </ByteSequence>
                            </InternalSignature>
                        </InternalSignatureCollection>
                    </BinarySignatures>
                </File>       
            </Files>
        </ContainerSignature>

        <ContainerSignature Id="48010" ContainerType="OLE2">
            <Description>Omnipage 12 Document</Description>
            <Files>
                <File>
                    <Path>PageManager/page1</Path>
                </File>
		 <File>
		    <Path>Version/Data</Path>
                    <BinarySignatures>
                        <InternalSignatureCollection>                    
	                        <InternalSignature ID="48010">
	                            <ByteSequence Reference="BOFoffset">
	                                <SubSequence Position="1" SubSeqMinOffset="0" SubSeqMaxOffset="0">
	                                    <Sequence>04 01 00 00</Sequence>
	                                </SubSequence>
	                            </ByteSequence>
	                        </InternalSignature>
	                    </InternalSignatureCollection>
                    </BinarySignatures>
                </File>              
            </Files>
        </ContainerSignature>
        
        <ContainerSignature Id="48020" ContainerType="OLE2">
            <Description>Omnipage 18 Document</Description>
            <Files>
                <File>
                    <Path>Document/Page1</Path>
                </File>
                <File>
                    <Path>Document/Data</Path>
                    <BinarySignatures>
                        <InternalSignatureCollection>                    
                            <InternalSignature ID="48020">
                                <ByteSequence Reference="BOFoffset">
                                    <SubSequence Position="1" SubSeqMinOffset="0" SubSeqMaxOffset="0">
                                        <Sequence>52 4F 53 00</Sequence>
                                    </SubSequence>
                                </ByteSequence>
                            </InternalSignature>
                        </InternalSignatureCollection>
                    </BinarySignatures>
                </File>              
            </Files>
        </ContainerSignature>

And the PageManager/page1 path is interpreted as a directory.

Compare it to SIARD though and the terminating slash can be used to tell us it actually is a directory: header/siardversion/2.1/.

So, it looks like we need another check in the code that enables us to create a placeholder file rather than just a directory.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant