File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
qiita_pet/handlers/cloud_handlers Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -29,7 +29,8 @@ def is_directory(filepath):
2929 -------
3030 Bool: True if the last part of the filepath is contained as filepath in
3131 qiita.filepath AND part after base_data_dir is a mountpoint in
32- qiita.data_directory AND the filepath_type is 'directory'.
32+ qiita.data_directory AND the filepath_type is 'directory or
33+ 'html_summary_dir'.
3334 False otherwise.
3435 """
3536 working_filepath = filepath
@@ -59,14 +60,14 @@ def is_directory(filepath):
5960
6061 with qdb .sql_connection .TRN :
6162 # find entries that
62- # a) are of filepath_type "directory"
63+ # a) are of filepath_type "directory" or "html_summary_dir"
6364 # b) whose filepath ends with directory name
6465 # c) whose mountpoint matches the provided parent_directory
6566 sql = """SELECT filepath_id
6667 FROM qiita.filepath
6768 JOIN qiita.filepath_type USING (filepath_type_id)
6869 JOIN qiita.data_directory USING (data_directory_id)
69- WHERE filepath_type= 'directory' AND
70+ WHERE filepath_type IN ( 'directory', 'html_summary_dir') AND
7071 filepath=%s AND
7172 position(%s in mountpoint)>0;"""
7273 qdb .sql_connection .TRN .add (sql , [dirname , mount_dirname ])
You can’t perform that action at this time.
0 commit comments