Skip to content
Snippets Groups Projects
Commit 34052fa2 authored by Alexander Schlemmer's avatar Alexander Schlemmer
Browse files

MAINT(structure-elements): moved structure elements to a subpackage

parent 9c85e25d
No related branches found
No related tags found
2 merge requests!198REL: Release 0.10.0,!195Refactor StructureElements Package
Pipeline #57342 passed
...@@ -37,6 +37,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ...@@ -37,6 +37,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
the global `debug` option by default and set to log level `INFO` in the global `debug` option by default and set to log level `INFO` in
case of `debug=False`. The previous behavior can be restored by case of `debug=False`. The previous behavior can be restored by
calling `crawler_main` with `sss_max_log_level=logging.DEBUG`. calling `crawler_main` with `sss_max_log_level=logging.DEBUG`.
- Moved structure_elements to a subpackage.
### Deprecated ### ### Deprecated ###
......
# encoding: utf-8
#
# This file is a part of the LinkAhead Project.
#
# Copyright (C) 2024 Indiscale GmbH <info@indiscale.com>
# Copyright (C) 2024 Daniel Hornung <d.hornung@indiscale.com>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
# published by the Free Software Foundation, either version 3 of the
# License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <https://www.gnu.org/licenses/>.
"""Submdule containing all default and optional converters."""
from .structure_elements import *
...@@ -36,5 +36,5 @@ def dircheckstr(prefix, *pathcomponents): ...@@ -36,5 +36,5 @@ def dircheckstr(prefix, *pathcomponents):
ftype = "Directory" ftype = "Directory"
else: else:
ftype = "File" ftype = "File"
return (f"caoscrawler.structure_elements.{ftype}: " + os.path.basename( return (f"caoscrawler.structure_elements.structure_elements.{ftype}: " + os.path.basename(
os.path.join(*pathcomponents)) + ", " + os.path.join(prefix, *pathcomponents)) os.path.join(*pathcomponents)) + ", " + os.path.join(prefix, *pathcomponents))
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment