removes hidden files from directory listing
This commit is contained in:
parent
b46fb336f4
commit
825dc4bf45
|
@ -32,6 +32,8 @@ def get_directory_content(dir_path):
|
|||
content = []
|
||||
for p in Path(dir_path).iterdir():
|
||||
file = Path(p)
|
||||
if file.name.startswith("."):
|
||||
continue
|
||||
model_type = (Path(file.name).suffix).lstrip('.').lower()
|
||||
is_object_file = True if model_type in OBJECT_TYPES else False
|
||||
item = {
|
||||
|
|
Loading…
Reference in New Issue