25
25
directories which simplifies interacting with files in subdirectories.
26
26
27
27
Utility methods are provided to determine whether a file exists
28
- and to create a directory heirarchy .
28
+ and to create a directory hierarchy .
29
29
30
30
31
31
Note however that not all functionality provided by the underlying
@@ -290,7 +290,7 @@ namespace SDLib {
290
290
file/directory with the associated file open mode property.
291
291
292
292
Always returns true if the directory traversal hasn't reached the
293
- bottom of the directory heirarchy .
293
+ bottom of the directory hierarchy .
294
294
295
295
Returns false once the file has been opened--to prevent the traversal
296
296
from descending further. (This may be unnecessary.)
@@ -399,7 +399,7 @@ namespace SDLib {
399
399
// extract just the name of the next subdirectory
400
400
uint8_t idx = strchr (filepath, ' /' ) - filepath;
401
401
if (idx > 12 ) {
402
- idx = 12 ; // dont let them specify long names
402
+ idx = 12 ; // don't let them specify long names
403
403
}
404
404
char subdirname[13 ];
405
405
strncpy (subdirname, filepath, idx);
@@ -424,7 +424,7 @@ namespace SDLib {
424
424
}
425
425
426
426
*index = (int )(filepath - origpath);
427
- // parent is now the parent diretory of the file!
427
+ // parent is now the parent directory of the file!
428
428
return *parent;
429
429
}
430
430
@@ -557,7 +557,7 @@ namespace SDLib {
557
557
boolean SDClass::mkdir (const char *filepath) {
558
558
/*
559
559
560
- Makes a single directory or a heirarchy of directories.
560
+ Makes a single directory or a hierarchy of directories.
561
561
562
562
A rough equivalent to `mkdir -p`.
563
563
@@ -568,7 +568,7 @@ namespace SDLib {
568
568
boolean SDClass::rmdir (const char *filepath) {
569
569
/*
570
570
571
- Remove a single directory or a heirarchy of directories.
571
+ Remove a single directory or a hierarchy of directories.
572
572
573
573
A rough equivalent to `rm -rf`.
574
574
0 commit comments