You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
71 lines
2.0 KiB
Python
71 lines
2.0 KiB
Python
4 years ago
|
"""
|
||
|
This file is designed to retrieve information on a folder
|
||
|
{files,size,hash}
|
||
|
"""
|
||
|
import subprocess
|
||
|
import sys
|
||
|
import re
|
||
|
import os
|
||
|
import pandas as pd
|
||
|
import io
|
||
|
import datetime
|
||
|
class Util :
|
||
|
def size(self,stream):
|
||
|
|
||
|
|
||
|
PATTERN = '(^.+)([A-Z]+$)'
|
||
|
value,units = re.match('^(.+)([A-Z]+$)',stream).groups()
|
||
|
value = float(value)
|
||
|
if 'G' == units :
|