ProcessWire logo ProcessWire logotype
  • CMSThe CMS
  • Docs
  • TalkCommunity
  • Blog
  • Download
  • Start typing…
  • Features Loaded with all the features most sites ever need.
  • Modules Browse the directory of plugin modules available.
  • About Learn more about PW’s history and origins.
  • Showcase Explore a gallery of sites built with ProcessWire.
  • Vs WordPress When, where and why you would choose PW over WP.
  • GitHub Visit the official ProcessWire GitHub repo.
  • Getting Started Intro topics on installation, structure, API and more.
  • API Reference Covers all classes and API variables in ProcessWire.
  • Front-end Render front-end HTML output with template files.
  • Selectors How to get and find pages using Selectors in PW.
  • Tutorials Learn by doing with these ProcessWire tutorials.
  • Modules & Hooks Developing modules and using hooks in ProcessWire.
  • Fields, Types, Input Using different kinds of field types and input fields in PW.
  • Access Control How to use PW’s role-based access control system.
  • Security How to maintain a secure PW site for the long term.
  • Multi-language How to use PW’s built-in multi-language features.
  • More Topics Additional ProcessWire development topics.
  • Support Forums Friendly & skilled group of web pros here to help.
  • Newsletter Subscribe to our weekly newsletter for PW updates.
  • ProcessWire Weekly Weekly news with PW & web development topics.
  • Showcase Explore a gallery of sites built with ProcessWire.
  • ProcessWire website redesign This week I’m thrilled to report that we have a new website online. The site was designed by Jan Ploch and Diogo Oliveira of KONKAT Studio in Hamburg Germany.
  • View all posts
  • View all categories
  • RSS
  • ProcessWire Core Download the latest versions of ProcessWire.
  • Modules Download plugin modules for ProcessWire.
  • Pro Shop 1st party paid modules made by ProcessWire.
  • GitHub Visit the official ProcessWire GitHub repo.
  • Site Profiles Introductory site examples and starting points.
  • Home
  • Docs
  • API Reference
  • Functions

files() function

Access tools for working on the file system ($files API variable as a function)

This behaves identically to the $files API variable and as no optional arguments.

Please note this method is and thus not intended to be called directly.

Internal usage

$wireFileTools = files();

Return value

WireFileTools


Functions methods and properties

API reference based on ProcessWire core version 3.0.251

  • Start typing…
  • Functions
  • PageArray()
  • WireArray()
  • WireData()
  • __()
  • _n()
  • _x()
  • cache()
  • config()
  • database()
  • datetime()
  • fields()
  • files()
  • input()
  • languages()
  • modules()
  • page()
  • pageId()
  • pages()
  • paths()
  • permissions()
  • region()
  • roles()
  • sanitizer()
  • session()
  • setting()
  • templates()
  • urls()
  • user()
  • users()
  • wire()
  • wire404()
  • wireBytesStr()
  • wireChmod()
  • wireClassExists()
  • wireClassImplements()
  • wireClassName()
  • wireClassNamespace()
  • wireClassParents()
  • wireCopy()
  • wireCount()
  • wireDate()
  • wireEmpty()
  • wireIconMarkup()
  • wireIconMarkupFile()
  • wireIncludeFile()
  • wireInstance()
  • wireInstanceOf()
  • wireIsCallable()
  • wireLangEntityEncode()
  • wireLangReplacements()
  • wireLangTranslations()
  • wireLen()
  • wireLength()
  • wireMail()
  • wireMethodExists()
  • wireMkdir()
  • wirePopulateStringTags()
  • wireRelativeTimeStr()
  • wireRenderFile()
  • wireRmdir()
  • wireSendFile()
  • wireTempDir()
  • wireUnzipFile()
  • wireZipFile()
Free and open source since 2010
The CMS
Features
Modules
About
Showcase
Vs WordPress
GitHub

Community
Support Forums
Newsletter
ProcessWire Weekly
Showcase
Docs
Getting Started
API Reference
Front-end
Selectors
Tutorials
Modules & Hooks
Fields, Types, Input
Access Control
Security
Multi-language
More Topics
Download
ProcessWire Core
Modules
Pro Shop
GitHub
Site Profiles

Blog
Newest post
View all posts
View all categories
RSS

ProcessWire

© 2025 ProcessWire
A free and open source CMS project

Design by KONKAT Studio
AWS by Perago Solutions