Skip to content

A tool to determine which files in folder A are not in folder B

License

Notifications You must be signed in to change notification settings

agsimmons/intersect_dirs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 

Repository files navigation

intersect_dirs

A tool to determine which files in folder A are not in folder B

Usage

usage: intersect_dirs.py [-h] dir_a dir_b

Ensure that all files in dir A are in dir B

positional arguments:
  dir_a
  dir_b

optional arguments:
  -h, --help  show this help message and exit

Example

Folder Structure:

.
├── dir_a
│   ├── file1.txt
│   ├── file2.txt
│   ├── file5 - Copy.txt
│   ├── file5.txt
│   └── Folder
│       └── file3.txt
└── dir_b
    ├── file1.txt
    ├── file2.txt
    └── file4.txt

Command:

python intersect_dirs.py dir_a dir_b

Output:

{
    "8254c329a92850f6d539dd376f4816ee2764517da5e0235514af433164480d7a": [
        "dir_a\\file5 - Copy.txt",
        "dir_a\\file5.txt"
    ],
    "2e7d2c03a9507ae265ecf5b5356885a53393a2029d241394997265a1a25aefc6": [
        "dir_a\\Folder\\file3.txt"
    ]
}

About

A tool to determine which files in folder A are not in folder B

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages