(self, path: PATH_TYPES, time: datetime.datetime)
Set the upload time of a given **path**
Set the upload time of a given **path**
Set the upload time of a given ** path **
def set_upload_time(self, path: PATH_TYPES, time: datetime.datetime) -> None:
        """Set the upload time of a given **path**"""
        if not isinstance(path, pathlib.Path):
            path = pathlib.Path(path)
        ts = time.timestamp()
        os.utime(path, (ts, ts))
def set_upload_time ( self , path : PATH_TYPES , time : datetime . datetime ) -> None : if not isinstance ( path , pathlib . Path ) : path = pathlib . Path ( path ) ts = time . timestamp ( ) os . utime ( path , ( ts , ts ) )