mirror of https://github.com/CIRCL/PyCIRCLean
Remove /playground
parent
3b1df108d5
commit
4eaa639a7a
|
@ -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.
|
||||
|
|
|
@ -1 +0,0 @@
|
|||
This directory contains extra files that may or may not be used in the project
|
|
@ -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)
|
Loading…
Reference in New Issue