LEARNING GOAL: I will reorganize the files on my AWS website during today's lesson

OPENING QUESTION: What is a file "path" and why is it so important when you are building a website?


  • file
  • folder/directory
  • file path
  • relative path


Opening Question Answer:

A "file path" is a way to tell a browser or an operating system the exact location of a file.

For example, on my laptop computer where I design my website, the "path" to this page is:


Notice that each "\" indicates a new subfolder (or subdirectory if you prefer)

However, on my website the "path" is a tad bit different:


Notice that each "/" indicates a new subfolder (or subdirectory if you prefer)

Notice that the key part of the "path" remains constant:


The bad news is the slashes change directions... it can be a bit confusing when you are first getting started


A couple of weeks ago, a few of us got together hereabouts and discussed where to locate files on our AWS website.

It was a VERY helpful conversation for me because it showed me that we have a wee bit (or MORE!) work to do in organizing our AWS files.

WAAAAAAAYYYYY back before the turn of the century (HAH!), those of us who were working with computers used the DOS (Disk Operating System) operating system.

We didn't have the luxury of a graphic oriented system so we became VERY fluent in files, folders (formally called "directories") and sub-folders.

Nowadays, many people (and MOST of your APCSP colleagues) tend to toss all of their files together in one place. For example, if we were to look at where your files "live" in your AWS "bucket" I imagine they'd appear something like this:

Since all the files are in one place it is REALLY easy to build links to them in your index.htm file or in links to each other.

The problem with doing that is that your main folder can get AWFULLY crowded, and you'll soon spend way too much time trying to find the files you are looking for.

Perhaps more importantly, anyone trying to make sense of your files will get lost.... not a good thing

For example:

My website has over 44,000 files (I've been developing it since my student teacher days back in the fall of 2007!)

Notice how my website is organized:

Now notice that within the apcom folder are a number of sub-folders that (usually) correspond to our units.

Within each unit are additional subfolders that further organize the files for that unit

Needless to say, there are many, many files in many folders, subfolders, sub-subfolders and even sub-sub-subfolders


Soooooo.... my marching orders to the FEW of your colleagues the week before Spring break was to organize your files into folders containing specific TYPES of files:

The bad news is that you'll break all of your links when you do that...

Welcome to the wonderful world of web design.

The good news is that it is VERY easy to repair those links. Take a gander at THIS

Please make sure your files and folders are organized thusly. I'll check to see if you have done that and record my findings in the grade book.