Skip to content

Python client manifest captures files described by filter if writing from current directory #16

@CBroz1

Description

@CBroz1

The default filename_filter (^\\.) is described in the README as ignoring files that begin with '.' but includes them when uploading from the current directory.

import os
from djarchive_client import client
c=client()

c.filename_filter='^\\.' 
c.write_manifest('./sub-dir/',overwrite=True)
> adding other_filename

os.chdir('./sub-dir')
c.write_manifest('.',overwrite=True)
> adding DS_Store
> adding other_filename

c.filename_filter='^\\.|DS'
c.write_manifest('.',overwrite=True)
> adding other_filename

Operating system: OSX, python version 3.9.3 via ipython 7.30.1, djarchive_client version 0.0.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions