Macaulay Essay Invalid Characters In File

Summary:

Illegal file/folder names and conventions for the following operating systems:
Windows
Mac OS 9
Mac OS X

Description:

========================
EXPLANATION & OVERVIEW

In the realm of cross-platform file sharing, sometimes the end users are not aware of the limitations posed by the operating system. This article will explain which characters can cause problems with files that use these characters.

======================
WINDOWS CONVENTIONS

The Windows operating system can use two different file systems, Protected-Mode File Allocation Table (FAT) file system and the New Technology File System (NTFS). The two systems have much in common, but the characters permitted in a file or folder name may differ. In the conventions listed below, it is true for both systems unless otherwise specified. Specifically there are cases where NTFS does not have the limitations (see note below).

The following characters are invalid as file or folder names on Windows using NTFS:
/ ? < > \ : * | " and any character you can type with the Ctrl key

In addition to the above illegal characters the caret ^ is also not permitted under Windows Operating Systems using the FAT file system.

Under Windows using the FAT file system file and folder names may be up to 255 characters long

Under Windows using the NTFS file system file and folder names may be up to 256 characters long

Under Window the length of a full path under both systems is 260 characters

In addition to these characters, the following conventions are also illegal:
Placing a space at the end of the name
Placing a period at the end of the name

The following file names are also reserved under Windows:
com1, com2, com3, com4, com5, com6, com7, com8, com9, lpt1, lpt2, lpt3, lpt4, lpt5, lpt6, lpt7, lpt8, lpt9, con, nul, and prn

Note:
The previous conventions are true only if the application used in managing them is does not use the Unicode API. Although the file system may support most of the above mentioned conventions the operating system may not. For example the NTFS file system allow paths to have a length up to 32,767 characters with each component (folder, file, etc.) being limited to 255 characters. However some windows applications like Explorer, for example, may not behave correctly in this circumstance. Other software, like ExtremeZ-IP uses the Unicode API so that file and folder names with invalid characters may be stored onto the NTFS file system.
Below the Macintosh conventions will touch the fact that the colon ":" is an invalid character in the Macintosh Operating Systems. Under Windows and the NTFS file system the colon is an illegal character, because it is used to open alternate file streams. However all other characters can be moved on and off the NTFS file system if a program with Unicode support is used. Both ExtremeZ-IP and MassTransit support this Unicode filenaming convention.

============================
MACINTOSH OS 9 CONVENTIONS

The only illegal character for file and folder names in Mac OS 9 is the colon ":"

File and folder names may be up to 31 characters in length

============================
MACINTOSH OS X CONVENTIONS

Since Mac OS X is build on top of UNIX there are a few inherent conventions that OS 9 users may not expect. Because of this, migrating certain files and folders from OS 9 to OS X may cause unexpected behavior.

The only illegal character for file and folder names in Mac OS X is the colon ":"

File and folder names are not permitted to begin with a dot "."

File and folder names may be up to 255 characters in length

=================================
EXAMPLES OF UNEXPECTED BEHAVIOR

Below are a few scenarios that show what can happen if file names that are acceptable on one operating system are moved to another:

Example 1:
Create a file named com1 on Mac OS 9
Move the file to a Windows machine
Under Windows 2000 viewing the folder which contains the file via Explorer will result in Explorer crashing
Under Windows 2003 the file name cannot be changed because the file will require inherent access permissions

Example 2:
Create a file named .text on Windows
Move the file to a Mac OS X machine
The file will not be visible via the Finder
(File and folder names beginning with a dot mean the file or folder is hidden)

Example 3:
Create a file named foo/ on Mac OS X
Move the file to a Windows machine
If the file is viewed via Explorer the file name will not appear as it did on the OS X machine

Related Article:

Invalid file or folder characters

Certain characters have special meanings when used in file names in OneDrive, SharePoint, and Windows, such as "*" for wildcards, and "\" in file name paths. If a file or folder you’re trying to upload to OneDrive contains any of the characters listed below, it may prevent files and folders from syncing. Rename the file or folder to remove these characters before you upload it.

To rename a file or folder in Windows, select it and press F2. To rename a file or folder on a Mac, select it and press the 'return' key. 

Characters that aren't allowed in file and folder names in OneDrive, OneDrive for Business on Office 365, and SharePoint Online

Characters that aren't allowed in file and folder names in OneDrive for Business on SharePoint Server 2013

" * : < > ? / \ |

Notes

  • Windows also blocks all these characters.

  • Some organizations don't yet support # and % in names. If you're a global admin or SharePoint admin in Office 365, see Enabling # and % Support on the SharePoint blog to learn how to allow these characters.

  • If you're using Office 2010, you can't use "&" in file and folder names.

~ " # % & * : < > ? / \ { | }.

Invalid file or folder names

These names aren't allowed for files or folders: AUX, PRN, NUL, CON, COM0, COM1, COM2, COM3, COM4, COM5, COM6, COM7, COM8, COM9, LPT0, LPT1, LPT2, LPT3, LPT4, LPT5, LPT6, LPT7, LPT8, LPT9.

Additionally, you can’t create a folder name in SharePoint Online from the browser that begins with a tilde (~).

File name and path lengths

The entire path, including the file name, must contain fewer than 400 characters for OneDrive, OneDrive for Business and SharePoint Online. If you exceed that limit, you'll receive an error message. SharePoint Server versions only support up to 260 characters for file and path lengths.

Invalid or blocked file types

There are no blocked file types in OneDrive, but there are some restrictions in SharePoint Server and OneDrive for Business on Office 365. For more info, see Types of files that cannot be added to a list or library.

You can't upload types of files that are blocked on your organization’s SharePoint site. The list of blocked files may vary depending on what your administrator sets up. For security reasons, a number of file names and extensions can't be uploaded since they are executable, used by SharePoint Server, or used by Windows itself.

For more information about restrictions and limitations, like size limits for syncing files, and character limits for files and folders, see Restrictions and limitations when you sync SharePoint libraries to your computer through OneDrive for Business.

Categories: 1

0 Replies to “Macaulay Essay Invalid Characters In File”

Leave a comment

L'indirizzo email non verrà pubblicato. I campi obbligatori sono contrassegnati *