Skip to content
Snippets Groups Projects
Commit ca3c6fee authored by Henrik tom Wörden's avatar Henrik tom Wörden
Browse files

merge

parent d410898a
No related branches found
No related tags found
No related merge requests found
......@@ -24,8 +24,6 @@
#
"""does something"""
import argparse
from argparse import RawTextHelpFormatter
import caosdb as db
......@@ -50,4 +48,14 @@ class Crawler(object):
if match is not None:
cfood.treat_match(crawled_file.path, match)
@staticmethod
def query_files(path):
query_str = "FIND FILE WHICH IS STORED AT " + \
(path if path.endswith("/") else path + "/") + "**"
print("FILES QUERY: " + query_str)
files = db.execute_query(query_str)
print(str(len(files)) + " FILES TO BE PROCESSED.")
return files
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment