Step 3 - Naming Conventions
What is a File Name?
File names are names that you create when saving a new file, and which are listed in the directory of a folder.
What is a File Naming Convention?
A File Naming Convention (FNC) is a system for naming your all your files, where the filename includes a description of the contents and the context. This is a system that is best established as early as possible; ideally before collection research data. The FNC is then used each time a new file is created for your research.
Benefits
If implemented early and consistently, a standardised system or convention for naming files can:
- make file naming easier
- facilitate access, retrieval and storage of files
- make it faster to navigate files
- guard against misplacing or losing files
- assist with version control
- identify obsolete or duplicate records
- avoid backlogs or project delays by presenting a clear and real-time display of the current or completed work.
Former PhD student and subsequent founder of the Figshare platform, Mark Hahnel, highlights a common challenge:
‘During my PhD I was never good at managing my research data. I had so many different file names for my data that I always struggled to find the correct file quickly and easily when it was requested. My former Principle Invesitgator was so horrified upon seeing the state of my data organisation that she held an emergency lab book meeting with the rest of my group when l was leaving’.
Research Information, April/May 2014
Develop a plan for your team on how to name files
Your research team should agree on the following elements of a file name prior to data collection:
- Vocabulary - choose a standard vocabulary for file names, so that everyone uses a common language
- Punctuation - decide when to use punctuation symbols, capitals and hyphens
- Dates - agree on a logical use of dates so that they display chronologically i.e. YYYY-MM-DD
- Order - confirm which element should go first, so that files on the same theme are listed together and can therefore be found easily
- Numbers - specify the amount of digits that will be used in numbering so that files are listed numerically e.g. 01, 002, etc.
Consider the following recommendations:
- Capitalise the first letter of every new word with no intervening spaces
- i.e.
PAHospitalAdmissionICU_2010_2020_Raw.csv
- i.e.
- Keep filenames a reasonable length and keep file name information (metadata) separated using upper and lower case
- i.e.
Image02_PacificOcean_20200621.jpg
- i.e.
- Use logical order for sequential number with padded zeros
- i.e. instead of
1,2,3
use001, 002, 003 or 01, 02, 03
- i.e. instead of
- For Version numbers consider
V1, V2
and multiple versionsV1, V2, V2.1
etc. - Document your FNC in a
ReadMe.txt
or other documentation file in main shared project folder. It can be useful for staff orientation.
See this example below which uses:
-
standard date format
followed byfile topic information
separated byunderscores _
, with words usingCapitalCase
and ending in thefile type
. -
Naming convention:
Date_Location_Sensor.filetype
-
Format example:
YYYYMMDD_SiteA_SensorB.CSV
-
Applied example:
20220621_MtGravatt_Humidity.CSV
Some characters may have special meaning to software or the operating system of the computer. Avoid using the following when you are naming files:
/ \ " ' * ; - ? [ ] ( ) ~ ! $ { } > # @ & | spaces tabs newlines
Source: IBM Knowledge Centre
- Create an easy naming convention for your data files and documents, using the guidance above.
- Dates are best stored with YYYYMMDD as files can be re-ordered chronologically.
- Document your file naming convention in a Readme.txt file and save it with your files.
For more file naming options, read and follow Edinburgh University’s simple 13 Rules for file naming conventions.
Do you have a policy in your team around naming conventions? If not, this is a great way of discussing the priorities of the research data.
Internal Resources
- Talk to your Research Support Services librarian at library@griffith.edu.au.