Go shallow on your directory structure for file servers

By Mitch Tulloch  Add a new comment

When you design the local directory structure on your file servers, it’s a good idea to go shallow i.e. don’t create a deep directory structure like:

E:\Contoso File Servers\Server12\Data Folders for Employees in Downtown Vancouver Office\Sales and Marketing Department\Sales and Marketing Users

and then share the Sales and Marketing Users folder. The reason this is a bad idea is that one of your users might create a deep folder structure of their own within the shared folder, perhaps something like this:

Tony Allen\Sales Forecasts for Project Fabrikam\Projections\2008\September\First Draft

and then Tony might add a document like this to his First Draft folder:

Fabrikam Project Sales Projection for September 2008 Draft Version 1.1.docx

What’s wrong with this scenario? Well, from Tony’s perspective, the full path to his document would be:

\\Server12\Sales and Marketing Users\Tony Allen\Sales Forecasts for Project Fabrikam\Projections\2008\September\First Draft\ Fabrikam Project Sales Projection for September 2008 Draft Version 1.1.docx

From Tony’s perspective, the full path to his document is 200 characters long, and this is within the 255 character limit supported for paths in Windows Explorer. But what if Tony left the company and you as administrator needed to move his files to a different on the file server? The problem now is that from the perspective of the file system on the file server, the full path to Tony’s document is this:

E:\Contoso File Servers\Server12\Data Folders for Employees in Downtown Vancouver Office\Sales and Marketing Department\Sales and Marketing Users\Tony Allen\Sales Forecasts for Project Fabrikam\Projections\2008\September\First Draft\ Fabrikam Project Sales Projection for September 2008 Draft Version 1.1.docx

This path is 309 characters long, which exceeds the supported path length for Windows Explorer, and this means that if you try and copy or move the file, you’ll get a Windows Explorer error saying that the path length is too long. There are ways of working around this problem—Robocopy for example supports over-long file paths—but they add some frustration to your job as administrator. And there’s no way to prevent users from exceeding the path length limit on the local file system when accessing it remotely through a share, and neither is there a way of extending the maximum path length supported by Explorer as this is hard-coded.

So to make your life a bit easier, avoid sharing deep folders on your file servers in the first place.

    Add a comment

    Post a comment using one of these accounts
    Or join now
    At least 6 characters

    Note: Comment will appear soon after you have activated your account.
    Obscene/spam comments will be removed and accounts suspended.
    The information you submit is subject to our Privacy Policy and Terms of Service.

    ITworld LIVE

    WindowsWhite Papers & Webcasts

    White Paper

    Microsoft Volume Licensing Reference Guide

    This guide provides an overview of the key features of Microsoft Volume Licensing programs. The information is presented by organizational type and size-two of the most important keys to determining your best Volume Licensing option.

    White Paper

    HP Software Licensing & Management Solutions for Microsoft

    See how HP Software Licensing & Management Solutions (SLMS) can help you identify the best Microsoft licensing program for your needs, get the most from your licensing agreement, and maximize your Microsoft software investment.

    White Paper

    Microsoft Open Value Program Guide

    In this overview, see how Microsoft Open Value provides a flexible, affordable way for small to midsize organizations (i.e. those with five or more desktop PCs) to use and manage all their Microsoft licensed products under a single agreement.

    White Paper

    Microsoft Volume Licensing Comparison - Enterprise

    With this quick-reference document, you can easily compare the available Microsoft Volume Licensing programs for enterprise organizations with 250+ devices, and tailor a program to help save costs, manage multiple licenses, and keep software up-to-date.

    White Paper

    Microsoft Enterprise Agreement Program Brief

    This white paper provides an in-depth look into how the Microsoft Enterprise Agreement Program provides with flexibility to choose among on-premises software and cloud services to best suit your user needs, and helps you optimize your technology spend as business priorities change.

    See more White Papers | Webcasts

    Ask a question

    Ask a Question