sudo apt-get install python3-pip
sudo pip3 install virtualenv
import os | |
import time | |
from tqdm import tqdm | |
import argparse | |
import sys | |
parser = argparse.ArgumentParser(description="Script to read files from directory to prevent automatic deletion") | |
parser.add_argument('--path',default=None,help="Enter directory path of your scratch or share space. Eg: /scratch/dave/ ") | |
parser.add_argument('--days',default=5,type=int,help="If last access day of file is beyond this, read the file to prevent deletion(default:5)") | |
args = parser.parse_args() |