{"id":197,"date":"2025-11-27T12:56:09","date_gmt":"2025-11-27T17:56:09","guid":{"rendered":"https:\/\/pressbooks.bccampus.ca\/rdmoer\/?post_type=chapter&#038;p=197"},"modified":"2026-03-01T21:26:02","modified_gmt":"2026-03-02T02:26:02","slug":"file-naming","status":"publish","type":"chapter","link":"https:\/\/pressbooks.bccampus.ca\/rdmoer\/chapter\/file-naming\/","title":{"raw":"File Naming","rendered":"File Naming"},"content":{"raw":"<h4><a href=\"https:\/\/pressbooks.bccampus.ca\/rdmoer\/chapter\/video-documenting-data-2\/\">Previous Lesson<\/a><\/h4>\r\n<h4>Lesson 5 of 17<\/h4>\r\n<h3>Descriptive and consistent file names make it easier for you and others to locate your files, so it is important to develop and document conventions, and then be sure to use them. If something you plan does not work in practice, change it, and then update your documentation.<\/h3>\r\n<h2><strong>Tips for Your File-Naming Conventions<\/strong><\/h2>\r\nDifferent operating systems and software can handle characters in filenames in ways you do not expect, and sometimes do not recognize certain characters.\r\n\r\n&nbsp;\r\n<div class=\"textbox\">\r\n<h3>The following are good practices to follow:<\/h3>\r\n<ul>\r\n \t<li>Put dates in ISO 8601 format<sup>1<\/sup>: YYYYMMDD or YYYY-MM-DD.<\/li>\r\n \t<li>Use periods only before file extensions, not in filenames (e.g., use fileName.pdf NOT file.name.pdf).<\/li>\r\n \t<li>Do not use spaces. Underscores (e.g., \"date_name\") or camel case (e.g., \u201ccamelCase\u201d) are good alternatives.<\/li>\r\n \t<li>Do not use special characters (e.g., #, $, &amp;, @, :, ?, \\, |).<\/li>\r\n \t<li>Do not make filenames too long (e.g., keep them under 25 characters).<\/li>\r\n<\/ul>\r\n<sub>1. ISO 8601 is an international standard for communicating dates and times.<\/sub>\r\n\r\n<\/div>\r\n&nbsp;\r\n<div class=\"textbox\">\r\n<h3>Consider what is important about your data and what you (or team members) want to see in a filename, such as the following information:<\/h3>\r\n<ul>\r\n \t<li>Researcher name or initials<\/li>\r\n \t<li>Date of collection or experiment<\/li>\r\n \t<li>Location<\/li>\r\n \t<li>Project name or acronym<\/li>\r\n \t<li>Data type (e.g., interview, transcript, raw, de-identified)<\/li>\r\n \t<li>Version number<\/li>\r\n<\/ul>\r\n<\/div>\r\n&nbsp;\r\n\r\nComputers can order and sort file names by particular criteria. For example, in the File Explorer in Windows, you can sort by file name (alphabetically), date, file type, etc. Sorting by file name can be very helpful when you are trying to find or group files you have previously saved. When you name your files, consider how you might like them sorted. For example, do you want to include human participant codes first so you can sort all of your data from one participant together?\r\n<h4><a href=\"https:\/\/pressbooks.bccampus.ca\/rdmoer\/chapter\/folder-organization\/\">Next Lesson<\/a><\/h4>","rendered":"<h4><a href=\"https:\/\/pressbooks.bccampus.ca\/rdmoer\/chapter\/video-documenting-data-2\/\">Previous Lesson<\/a><\/h4>\n<h4>Lesson 5 of 17<\/h4>\n<h3>Descriptive and consistent file names make it easier for you and others to locate your files, so it is important to develop and document conventions, and then be sure to use them. If something you plan does not work in practice, change it, and then update your documentation.<\/h3>\n<h2><strong>Tips for Your File-Naming Conventions<\/strong><\/h2>\n<p>Different operating systems and software can handle characters in filenames in ways you do not expect, and sometimes do not recognize certain characters.<\/p>\n<p>&nbsp;<\/p>\n<div class=\"textbox\">\n<h3>The following are good practices to follow:<\/h3>\n<ul>\n<li>Put dates in ISO 8601 format<sup>1<\/sup>: YYYYMMDD or YYYY-MM-DD.<\/li>\n<li>Use periods only before file extensions, not in filenames (e.g., use fileName.pdf NOT file.name.pdf).<\/li>\n<li>Do not use spaces. Underscores (e.g., &#8220;date_name&#8221;) or camel case (e.g., \u201ccamelCase\u201d) are good alternatives.<\/li>\n<li>Do not use special characters (e.g., #, $, &amp;, @, :, ?, \\, |).<\/li>\n<li>Do not make filenames too long (e.g., keep them under 25 characters).<\/li>\n<\/ul>\n<p><sub>1. ISO 8601 is an international standard for communicating dates and times.<\/sub><\/p>\n<\/div>\n<p>&nbsp;<\/p>\n<div class=\"textbox\">\n<h3>Consider what is important about your data and what you (or team members) want to see in a filename, such as the following information:<\/h3>\n<ul>\n<li>Researcher name or initials<\/li>\n<li>Date of collection or experiment<\/li>\n<li>Location<\/li>\n<li>Project name or acronym<\/li>\n<li>Data type (e.g., interview, transcript, raw, de-identified)<\/li>\n<li>Version number<\/li>\n<\/ul>\n<\/div>\n<p>&nbsp;<\/p>\n<p>Computers can order and sort file names by particular criteria. For example, in the File Explorer in Windows, you can sort by file name (alphabetically), date, file type, etc. Sorting by file name can be very helpful when you are trying to find or group files you have previously saved. When you name your files, consider how you might like them sorted. For example, do you want to include human participant codes first so you can sort all of your data from one participant together?<\/p>\n<h4><a href=\"https:\/\/pressbooks.bccampus.ca\/rdmoer\/chapter\/folder-organization\/\">Next Lesson<\/a><\/h4>\n","protected":false},"author":2543,"menu_order":5,"template":"","meta":{"pb_show_title":"on","pb_short_title":"","pb_subtitle":"","pb_authors":[],"pb_section_license":""},"chapter-type":[],"contributor":[],"license":[],"class_list":["post-197","chapter","type-chapter","status-publish","hentry"],"part":184,"_links":{"self":[{"href":"https:\/\/pressbooks.bccampus.ca\/rdmoer\/wp-json\/pressbooks\/v2\/chapters\/197","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pressbooks.bccampus.ca\/rdmoer\/wp-json\/pressbooks\/v2\/chapters"}],"about":[{"href":"https:\/\/pressbooks.bccampus.ca\/rdmoer\/wp-json\/wp\/v2\/types\/chapter"}],"author":[{"embeddable":true,"href":"https:\/\/pressbooks.bccampus.ca\/rdmoer\/wp-json\/wp\/v2\/users\/2543"}],"version-history":[{"count":6,"href":"https:\/\/pressbooks.bccampus.ca\/rdmoer\/wp-json\/pressbooks\/v2\/chapters\/197\/revisions"}],"predecessor-version":[{"id":743,"href":"https:\/\/pressbooks.bccampus.ca\/rdmoer\/wp-json\/pressbooks\/v2\/chapters\/197\/revisions\/743"}],"part":[{"href":"https:\/\/pressbooks.bccampus.ca\/rdmoer\/wp-json\/pressbooks\/v2\/parts\/184"}],"metadata":[{"href":"https:\/\/pressbooks.bccampus.ca\/rdmoer\/wp-json\/pressbooks\/v2\/chapters\/197\/metadata\/"}],"wp:attachment":[{"href":"https:\/\/pressbooks.bccampus.ca\/rdmoer\/wp-json\/wp\/v2\/media?parent=197"}],"wp:term":[{"taxonomy":"chapter-type","embeddable":true,"href":"https:\/\/pressbooks.bccampus.ca\/rdmoer\/wp-json\/pressbooks\/v2\/chapter-type?post=197"},{"taxonomy":"contributor","embeddable":true,"href":"https:\/\/pressbooks.bccampus.ca\/rdmoer\/wp-json\/wp\/v2\/contributor?post=197"},{"taxonomy":"license","embeddable":true,"href":"https:\/\/pressbooks.bccampus.ca\/rdmoer\/wp-json\/wp\/v2\/license?post=197"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}