webtimeless

Files

A site's Files tab: browse, open, edit, search, upload, zip and delete with Undo, copy uploads from production, and what stays out of reach.

Where
A site's Files tab (?tab=files): Browse, and Uploads from production
Runs as
You, never root, inside the site's folder only
Undo
A delete goes to the file trash and can be put back for 14 days
Never sent
File contents never reach the AI assistant
On this page

Every site has a Files tab: its folder, one level at a time, and any file in it opened in place of the list. The panel reads and changes files as you, never as root, and never leaves the site's folder.

Browsing

What the tab shows

  • The path bar: the site folder, then each folder down to this one. Each part is a link, and .. at the top of the list goes one up.
  • Tiles, at the site's folder, for the places worth one click: wp-content, Themes, Plugins, Uploads, each git repo of the site, wp-config.php and debug.log. Each has a fact: how many themes or plugins, how big a file is, and debug.log in the warning colour from 10 MB. Only the ones that are there show; in a folder below, they are one slim row.
  • The bar: Upload, New file, New folder and Check again, with the search box under it.
  • The list: name, size, when it changed and permissions, folders first. Name, Size and Changed sort. On a phone only the name and size show.

Get around

  • Press / anywhere on the tab to go to the search box, and Escape in it to empty it and leave the search results.
  • The folder and the file are in the address (?tab=files&dir=wp-content/themes), so Back, a reload and a bookmark land where you were.
  • A folder has no size until you ask: Measure in its Size cell counts everything below it (du, staying on the folder's disk). The total shows until the list is read again.
  • .git and node_modules are left out until you switch on Show hidden. Dot files like .htaccess always show.
  • A very long folder lists its first 5,000 entries and says how many it left out.

What a row's mark means

A row is marked only when that changes what you can do with it.

Mark Means
repo The top folder of a git repo
the panel's file One of the two must-use plugins the panel adds
shared core, read only wp-admin or wp-includes of a shared core
link Any other link
read only A file another account owns (often www-data)

A row's menu opens it, downloads it or copies its full path. For what you can change, it also has Edit, Rename, Duplicate, Move to, Copy to and Delete.

Opening a file

File Opens as
Text up to 2 MB Text with line numbers
png, jpg, gif, webp The image
SVG Text, since it can hold scripts
Anything else, larger text Its size, date and permissions, with Download
  • &line=42 in the address marks that line and brings it into view.
  • A line of debug.log or the web server's log on the Logs tab that names a file of the site (.../functions.php on line 28) links to that file, at that line.
  • A download is always sent as a file to save, never as a page: with Content-Disposition: attachment, nosniff and a policy that runs nothing.

Editing a file

Edit on a text file you can write opens it in an editor: line numbers, colours for the language the file's ending names (PHP, JS, CSS, HTML, JSON, SQL), Ctrl+F to find, and Tab to indent with the file's own indent. &edit=1 in the address opens a file that way.

  • wp-config.php shows a warning while you edit it.
  • A file another account owns, a file of a shared core and anything that is not text have no Edit.
  • The editor loads the first time you press Edit. If it cannot load, the file still shows as text.

Save and Cancel

  • Nothing is written while you type: only Save, or Ctrl+S in the editor, writes.
  • A save goes to a temporary file next to the file first, then into its place, so it never leaves half a file. Permissions and line endings stay as they were.
  • Cancel drops what you typed and leaves the file as it is on disk. It asks once on the button first.
  • The browser asks before a reload or a closed tab loses your typing.

When the file changed on disk

If the file changed since you opened it (an editor, git, WordPress), the save stops and says so. Then pick one:

  • See the difference: what is on disk next to what you typed.
  • Reload from disk: drops what you typed.
  • Save anyway: replaces what is on disk.

PHP syntax check

After a save of a PHP file the panel asks PHP whether it parses (php -n -l, which never runs the file). The save is never held back: a syntax error is named with its line, with a button that goes there.

Find, git and changes

The search box has three ways to look.

Way Looks in When
This folder Names in the folder you are in As you type
Names below Names in this folder and below When you press Enter
Text in files Text files in this folder and below When you press Enter

The last two take the list's place with their results.

  • Names match whatever the case of the letters, nearest folders first.
  • Text is read from text files only, whatever the case, as plain characters (no patterns). Each line found links to the file at that line.
  • .git and node_modules are left out, and so are minified files and source maps for a text search. Links are named, never followed.
  • A search lists up to 200 results and says when there are more. It has an address of its own, so Back and a reload keep it.

What git says

In a folder of a git repo the bar names the repo and its branch. Each entry says what git says about it: modified, new, added, renamed, conflict, or "changes inside" for a folder.

  • A file that changed has a Changes button with its diff since the last commit.
  • git is only read: no program from the repo's config runs for it, and the panel never commits, stages or checks out.
  • A diff holds the file's text, so it goes to the browser only: it is never stored and never sent to an AI.

New, rename, move, copy

  • New file and New folder make one in the folder you are in. A new file opens in the editor.
  • Rename changes a name within its folder. A name has no slash, and a name that is taken is refused: nothing is ever written over.
  • Move to and Copy to open a picker of the site's folders. A folder cannot go into itself, and a folder you may not write to is refused with the reason.
  • Duplicate makes name copy.ext next to the original.
  • Tick rows, or the box in the header for all of them, and a bar offers Move to, Copy to and Delete for the selection. A row that cannot change keeps a greyed box.
  • A copy of more than 1 GB is refused: do that one in a terminal.

Permissions

Permissions, in a row's menu or for the rows you tick, sets one of five modes, each named with what it means:

Mode Meaning
644 you write, everyone reads
640 you write, your group reads
600 only you read and write
755 you write, everyone reads and opens or runs it
750 you write, your group reads and opens or runs it
  • The mode an entry has now is picked and marked now, and Set waits until you pick another.
  • There is no box to type a number in, so nothing here lets everyone write (777, 666) or sets a setuid bit.
  • A folder takes 755 or 750 only, since with the others nobody could open it. Only the folder itself changes, never what is in it.
  • A link is refused, since its permissions are those of what it points at, and so is anything in a shared core.
  • Everything is checked before the first entry changes. It runs as you, so a file another account owns says so and stays as it is.

From other places

  • The command palette (Ctrl+K) has Files of each site.
  • On the Plugins and themes tab each plugin and theme has Open folder, or Open file for a plugin that is a single file. Must-use plugins and drop-ins have none.
  • A theme found in a repo through Local mode opens at its folder under wp-content/repos.
  • The site's Overview has Open in Files, and a Files link for each folder.

Upload, zip and extract

Upload

Upload, or files dropped on the list, puts files in the folder you are in: up to 200 at a time and 1 GB each, with a line that says how far it got.

  • Nothing is written over: a name that is already there is left as it is, and the message names it.
  • A folder is not uploaded as it is. Pack it into a zip, upload that and choose Extract.

Zip, download and extract

  • Download as zip on a folder, or Download for the rows you tick, sends them as one zip made for that download. Links in it stay links.
  • Compress makes name.zip next to the entry, or one zip of the rows you tick, under a name that is free.
  • Extract unpacks a zip, tar, tar.gz, tgz, tar.bz2 or tar.xz into a new folder next to it, named after the archive.
  • The archive is read first. It is refused when an entry would leave that folder or sits under a link, or when it all unpacks to more than 1 GB. Links in it are left out, and the message says how many.
  • Zips need zip and unzip. Where one is missing, the panel says so, with the line to install it.

Delete and Undo

Delete moves the entry to the panel's file trash, in the panel's data folder outside the site. The message that says so has Undo.

Note The list ends with Changes you can undo: each delete of the last 14 days, with Put back. After 14 days it is removed for good.

  • Put back never writes over anything. If another file took the name in the meantime, both are kept and the panel says which is which.
  • A delete that would break the site asks first, with the reason: wp-config.php, index.php, .htaccess and wp-content in the site folder, the themes, plugins, uploads and mu-plugins folders, one of the panel's two files, and a git repo (commits never pushed go with it).
  • More than 1 GB is too much to keep for Undo and is refused: delete that in a terminal.

See Undo and backups for what the rest of the panel keeps.

Uploads from production

The Files tab of a WordPress site has two views: Browse and Uploads from production (?tab=files&view=uploads). The second brings files of wp-content/uploads from the site's own server, over SSH, when you ask. Uploads have nothing on the Database tab, and a refresh from production never copies them.

The server

It uses the server saved for Refresh from production (SSH host and WordPress folder), with Change and Forget, and asks for both when none is saved.

A server that asks for a password gets the one you type for that run, or the one you saved for that server. Saving, testing and forgetting a password work as in Passwords and host keys.

Bring uploads home

  1. Look at Here: what this computer has. The files and size of uploads, the free space, the last copy, and whether Local mode already loads missing files from production when a page asks for them.
  2. Press Compare. It lists the files on the server and reads the ones here, and copies nothing.
  3. Tick the folders to bring. Every folder shows what is new, what changed and its size, in the groups below.
  4. Narrow it if you like: Originals only leaves resized copies like photo-300x200.jpg on the server (wp media regenerate makes them again), and Skip files larger than leaves big files there.
  5. Press Bring. Stop keeps what came, and a new run brings the rest.
Group What is in it
Media By month, and by site on a network
Generated and rebuildable Styles and converted images that plugins make again
Private data Form entries, order files, paid downloads, members' files
Other folders Everything else

Only media with something new starts ticked, and private data warns you when you tick it. All media, Last 3 months and Nothing tick for you.

What Bring does and does not do

  • It only adds: a file that is here already stays as it is, and nothing here is deleted.
  • It is refused when the files would not fit with 1 GB to spare. It needs rsync on both sides.
  • Files that are here too and newer on the server are listed. Bringing them is a switch of its own, off by default: each file here goes to the file trash first, and Changes you can undo on Browse puts it back for 14 days.
  • Files that are only here are listed, and nothing is done with them.
  • Never copied: PHP files, links, .htaccess, database dumps, and the cache, log and backup folders of plugins. A folder with a name the panel does not take is left on the server and counted.
  • In wp-content/uploads, Browse has a line that leads here. The new site wizard's Also copy the uploads stays as it is (see New site).

Nothing is written or deleted on the server, no key is added there, and its host key is still checked.

What stays out of reach

  • A path is checked as it is written, and again after links are followed. .., a leading slash and control characters are refused.
  • A link that leaves the site's folder is shown with where it points and is not followed. The exception is the shared cores folder of wpcore, which is read only here: a core is shared by other sites.
  • A link that leaves the site's folder is never written through, renamed, moved or deleted here: it is the site's wiring.
  • Nothing here needs root, and no dmp-root command is involved. A file you may not read as yourself says so.

Note File contents stay between the panel and your browser. They are never sent to the AI assistant, the assistant cannot run the Files actions, and Run history stores what you saved as (hidden).

Checked against devmagic-panel 1.67.0.

Type to search the docs, guides, comparisons and tool pages.