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

merge

parent 0c3fc9bb
No related branches found
No related tags found
No related merge requests found
...@@ -24,8 +24,6 @@ ...@@ -24,8 +24,6 @@
# #
"""does something""" """does something"""
import argparse
from argparse import RawTextHelpFormatter
import caosdb as db import caosdb as db
...@@ -50,4 +48,14 @@ class Crawler(object): ...@@ -50,4 +48,14 @@ class Crawler(object):
if match is not None: if match is not None:
cfood.treat_match(crawled_file.path, match) 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.
Please register or to comment