Shdir
Current Directory:
~
{% set current_full_path = namespace(value="") %}
{% for dir in subpath.split('/') %}
{% if dir %}
{% if current_full_path.value == "" %}
{% set current_full_path.value = dir %}
{% else %}
{% set current_full_path.value = current_full_path.value + '/' + dir %}
{% endif %}
/
{{ dir }}
{% endif %}
{% endfor %}
{% if upload %}
Upload the file to the CWD
{% endif %}
{% if not is_root %}
{% if show_home %}
-
{% include "icons/arrow_up.svg" %}
Go Home
{% endif %}
-
{% include "icons/arrow_up.svg" %}
../
{% endif %}
{% for dir in dirs %}
-
{% include "icons/folder.svg" %}
/{{ dir.name }}
{% include "icons/zip.svg" %}
{% endfor %}
{% for file in files %}
{% if not file.name.startswith(".") %}
-
{% include "icons/file.svg" %}
{{ file.name }}
{% if file.ext in ['.mp4', '.mov', '.avi', '.webm', '.mkv', '.flv', '.wmv', '.3gp'] %}
{% include "icons/play.svg" %}
{% elif file.ext in [ '.jpg', '.jpeg', '.png', '.gif', '.webp', '.svg', '.bmp', '.ico', '.tiff', '.avif'] %}
{% include "icons/preview.svg" %}
{% endif %}
{% endif %}
{% endfor %}