P5-dancer2-plugin-path-class

Jul 20, 2023

List a directory using Path::Class

Dancer2PluginPathClass exports the keyword ‘ls’ returning a PathClass object.

The ‘ls’ keyword also sets some ‘vars’.

  • ls_name The basename of the path
  • ls_cdup The parent of the request path
  • ls_dirs A list of subdirectories if the path is a directory object
  • ls_files A list of files or just one file if the path is a file object


Checkout these related ports:
  • Zope213 - Object-based web application platform Version 2.13
  • Zola - Fast static site generator
  • Zgrab2 - Fast Go application scanner
  • Zerowait-httpd - Lightweight and fast http server
  • Zenphoto - Simpler web photo gallery
  • Zend-framework - Framework for developing PHP web applications
  • Yuicompressor - The Yahoo! JavaScript and CSS Compressor
  • Ytdl - YouTube downloader written in Go
  • Yt-dlp - Command-line program for downloading videos from various platforms
  • Youtube_dl - Program for downloading videos from various services
  • Yourls - Your Own URL Shortener
  • You-get - Dumb downloader that scrapes the web
  • Yaws - Web server for dynamic content written in Erlang
  • Yarr - Yet another rss reader
  • Yarn - Package manager for node, alternative to npm (meta port)