Good folder and file names

Skip to content

This is a machine-translated text that may contain errors!

When creating files and folders, it is wise to give them names that actually tell you what they contain. This is very important when working with all subjects at IM. Trust me, you do not want to be sitting here a year from now having no idea where ANYTHING on your computer is located.

What will a good folder name mean?

Look at these folder names:

📁 things
📁 project
📁 new folder
📁 asdf
  1. What do the folders tell you about their contents?
    Not much… you have to open them to see what’s inside
  2. Does it work?
    Yes, it works as such… But it isn’t very helpful for yourself.
  3. Can we make it better?
    Yes!

A better solution:

📁 Hero Website
📁 Interview Task
📁 Python Calculator
📁 Photoshop Poster

Here it is much easier to understand what the folders contain without having to open them first.

“This is a problem for future me” 🔮

A good name should still make sense if you open the project again in a year. “Project” might seem clear right now. But, in a year you may have 40 different projects!


Task 1 - Which name is best?

You have created a website about your favorite game.

Which of these folder names do you think fits best?

- 📁 website
- 📁 School assignment
- 📛 Website about Minecraft
- 📁 things
- 📁 Web Project 1

Answer:

  1. Which name would you choose?
  2. Why?
  3. Could any of the other names also work?

Is there always one right answer?

No!!

The most important thing is that the name is clear and makes sense to those who will use the files.


Rename files and folders ✏️

You are guaranteed to give a file or folder a bad name at some point (or have already done so). Luckily, we can simply change the name.

It is as simple as right-clicking on the file or folder and selecting Rename.

Tip!

You can also select the file or folder and press:

  • F2 if you are on Windows.
  • Enter if you are on Mac.

Tip

Renaming a file or folder does not change its contents.

You are only changing what it’s called.


Task 2 - Give folders a better name

Find a folder in your Documents folder that might have a bad name and try to rename it!

Important! Two items cannot have the same name

Inside one folder, two items cannot have exactly the same name.

So you cannot have this:

📁 Web Development
├── 📁 Hero Website
└── 📁 Hero Website ❌

If you try to create or give something a name that already exists in the same folder, your computer will therefore ask you to choose another name.

This applies to both files and folders.

But what about files that appear to have the same name?

These two files actually have different names:

📄 bilde.png
📄 bilde.jpg

.png and .jpg are part of the filename. This is called a file extension.

Tip: Show file extensions 👀

To actually see the full filename it is advisable to enable display of file extensions.

You will then for example see:

📄 image.png
📄 report.docx
📄 webpage.html

instead of just:

📄 image
📄 report
📄 website
  1. Open File Explorer.
  2. Click on View at the top.
  3. Select Show.
  4. Check File name extensions.

File extensions such as .png, .docx, and .html should now be visible.

  1. Open Finder.
  2. Press Finder → Settings at the top of the screen.
  3. Go to Advanced.
  4. Check Show all filename extensions.

Do not delete the file extension!

When file extensions are visible, they also become part of the name you see when renaming a file.

If the file is named:

bilde.png

You can freely change bilde to something else, but make sure that .png remains at the end.

The file extension tells the computer what type of file it is.


Task 4 - Why? 🤔

Answer with your own words to the questions below:

  1. Why is it wise to use clear names for files and folders?
  2. How can a name like project work fine right now but become a problem later?
  3. How can good file and folder names make it easier to collaborate with others?
  4. What do you think could happen if a large project has hundreds of files with poor names?
Example solution

These are examples of answers. You don’t need to have written exactly the same thing.

1. Clear names make it easier for me to find what I’m looking for without having to open all the files and folders.

2. Right now I might know which project I mean, but later I could have many different projects and not remember which is which.

3. Others can understand what the files contain and where they should look for things without having to ask me.

4. It can be difficult to find the right file, and it’s easier to use the wrong one, lose track of things, or redo work.