mirror of https://github.com/CIRCL/AIL-framework
17 lines
283 B
Python
17 lines
283 B
Python
|
#!/usr/bin/env python3
|
||
|
# -*-coding:UTF-8 -*
|
||
|
|
||
|
import os
|
||
|
import redis
|
||
|
|
||
|
import Flask_config
|
||
|
import Date
|
||
|
|
||
|
PASTES_FOLDER = Flask_config.PASTES_FOLDER
|
||
|
|
||
|
def exist_item(item_id):
|
||
|
if os.path.isfile(os.path.join(PASTES_FOLDER, item_id)):
|
||
|
return True
|
||
|
else:
|
||
|
return False
|