Posts

The Best Characters to Use When Naming Files and Folders

Back in the early 1980s, DOS filenames couldn’t be more than 8 characters long with a period and a 3-character extension. That was limiting, so when Apple developed the Mac operating system in 1984, it allowed longer names and eliminated the need for an extension, although Mac OS X’s Unix roots meant a return of the filename extension in 2001. Since then, filename restrictions have loosened to the point where it’s easy to think that they no longer exist.

If only that were true! In some ways, the situation has become even cloudier, thanks to additional limitations from file-sharing services like Dropbox, OneDrive, and Box. (Google Drive’s native Web interface reportedly has no naming limitations, but files whose names contain Windows or macOS forbidden characters may not sync via Google Drive’s desktop software.) Plus, people tend to move files between operating systems more than ever before—if you’re sending a file from your Mac to a Windows user through Dropbox, you need to make sure that all three can deal with the filename.

At least length isn’t something that you generally have to think about these days, since both macOS and Windows—and the cloud services—accept filenames up to 255 characters in length. Technically speaking, Windows limits directory paths (the enclosing folder names along with the filename) to 255 characters, but even still, that shouldn’t be difficult to avoid.

What could go wrong if you run afoul of a naming restriction? macOS and Windows may simply not let you type the character—for example, you can’t put a colon in a Mac filename. Putting a period at the start of a Mac or Unix filename will hide the file. Cloud sharing services might rename the file, or you might encounter syncing issues where files don’t appear where they should. Certain characters can also cause trouble when files are used at the command line.

Here are the characters to avoid and the operating systems and services that prohibit them:

  • : (colon): macOS, Windows, Dropbox, OneDrive, Box
  • . (period): macOS (at the start of a name), Dropbox
  • / (forward slash): macOS, Windows, Dropbox, OneDrive, Box
  • (backslash): Windows, Dropbox, OneDrive, Box
  • < (less than): Windows, Dropbox, OneDrive, Box
  • > (greater than): Windows, Dropbox, OneDrive, Box
  • ” (double quote): Windows, Dropbox, OneDrive, Box
  • | (vertical bar or pipe): Windows, Dropbox, OneDrive, Box
  • ? (question mark): Windows, Dropbox, OneDrive, Box
  • * (asterisk): Windows, Dropbox, OneDrive, Box
  • ^ (caret): Windows (using FAT-formatted drives)

In addition, avoid using special characters like the © (copyright) symbol or emoji 🤷🏽‍♂️  in filenames. They might work locally, but all bets are off if you share the files in any way.

A few other recommendations:

  • Avoid unusual punctuation; in particular, note that OneDrive renames filenames containing:
    • , (comma) to ^J
    • # (number sign) to ^N
    • & (ampersand) to ^O
    • ~ (tilde) to ^F
  • Never start or end file or folder names with a space, and avoid spaces in filenames that will be uploaded to a Web or SFTP server.
  • Avoid putting more than one period in a filename, and don’t put a period after a filename extension.
  • Never assume that names are case sensitive—always make sure that similarly named items differ by more than just case.

If all that seems like a lot to keep in mind, here’s the simple rule that will ensure your filenames will work everywhere:

Name files only with uppercase (A-Z) and lowercase (a-z) letters, digits (0-9), and the hyphen (-) and underscore (_), plus a single period (.) and extension.

(Featured image by iStock.com/cosmin4000 and smartstock)


Social Media: You might think that you can name a file or folder any way you want, but macOS and Windows have restrictions on which characters you can use, and the prevalence of cloud sharing services makes it all the more important to avoid prohibited characters.

Disable Unused Sharing Options on Your Mac If You’re Not Using Them

Many security breaches—even high-profile ones—stem from simple oversight. There’s one spot in macOS that has long been particularly susceptible to such lapse: the Sharing pane of System Preferences. In it, you can enable a wide variety of sharing services, some of which could allow another user to access your Mac remotely. They all let you limit access to particular users, but passwords can be stolen, accounts can be compromised, and server software can have bugs. For safety’s sake, if you’re not actively using a sharing service, turn it off. The most important ones to disable when not in use are Screen Sharing, File Sharing, Remote Login, Remote Management, and Remote Apple Events. We also caution against leaving Printer Sharing and Internet Sharing on unnecessarily.

(Featured image by Morgane Perraud on Unsplash)

Don’t Store Confidential Files in Online File Sharing Services

Given their integration into the Mac’s Finder, it can be easy to forget that online file sharing services like Dropbox, Google Drive, iCloud Drive, and Microsoft OneDrive can be accessed using a Web browser by anyone with your username and password. Obviously, you should always have strong, unique passwords, but to be safe, it’s best not to use services designed for public file sharing to store unencrypted files containing sensitive information like credit card numbers, Social Security numbers, passport scans, privileged legal documents, financial data, and so on. Keep such data secure on your Mac—outside of any synced folders—where accessing it requires physical access to the machine.

(Featured image based on an original by Kenaz Nepomuceno from Pexels)

AirDrop Reception Not Working? Here’s the Likely Fix

AirDrop has become a fast and reliable way to transfer data from one iPhone to another that’s nearby. Just tap the share icon and in iOS 13’s activity view, either tap an AirDrop shortcut in the top row or tap AirDrop in the second row and select choose a person or device in the subsequent AirDrop screen. But what if your iPhone doesn’t appear for the person who wants to share with you? Assuming Wi-Fi and Bluetooth are both on, the fix is generally to go to Settings > General > AirDrop and select Everyone. If you’re concerned about unwanted transfers, switch to Contacts Only afterward.

(Featured image by Günther Schneider from Pixabay)

Use Dropbox’s Selective Sync to Save Space on Small Drives

If you’re like many of our clients who use Dropbox intensively, you have a desktop Mac with a large drive and a MacBook with much less drive space. How do you prevent your large Dropbox account from overwhelming the laptop Mac’s available storage? The answer is Dropbox’s Selective Sync feature. On the MacBook, click the Dropbox icon in the menu bar, click your avatar in the upper-right corner, and choose Preferences. In the Preferences window, click Sync and then click the Choose Folders to Sync button. Deselect the folders you want to prevent from syncing to the MacBook and click Update. If you need to access any files in those folders from the MacBook, go to dropbox.com in your Web browser instead, or adjust your Sync preferences to bring in the needed folder.

(Featured image based on a photo by Daniele Levis Pelusi on Unsplash)