diff --git a/README.md b/README.md index 91583e2..8330ce1 100644 --- a/README.md +++ b/README.md @@ -26,7 +26,7 @@ pip install . PyCIRCLean is a simple Python library to handle file checking and sanitization. PyCIRCLean is designed as a simple library that can be overloaded to cover specific checking and sanitization workflows in different organizations like industrial environments or restricted/classified ICT environments. A series of practical examples utilizing PyCIRCLean can be found -in the [./bin](./bin) directory. +in the [./examples](./examples) directory. The following simple example using PyCIRCLean will only copy files with a .conf extension matching the 'text/plain' MIME type. If any other file is found in the source directory, the files won't be copied to the destination directory. diff --git a/playground/README.md b/playground/README.md deleted file mode 100644 index 76a9248..0000000 --- a/playground/README.md +++ /dev/null @@ -1 +0,0 @@ -This directory contains extra files that may or may not be used in the project diff --git a/playground/usb_lookup.py b/playground/usb_lookup.py deleted file mode 100644 index 76f14d7..0000000 --- a/playground/usb_lookup.py +++ /dev/null @@ -1,16 +0,0 @@ -#!/usr/bin/env python -# -*- coding: utf-8 -*- - -from usb.core import find -import usb.control - - -def is_mass_storage(dev): - import usb.util - for cfg in dev: - if usb.util.find_descriptor(cfg, bInterfaceClass=8) is not None: - return True - - -for mass in find(find_all=True, custom_match=is_mass_storage): - print(mass)