add path() to return full filepath
This commit is contained in:
1 parent
aa9078a9bf
commit
c089969471
2 files changed
+7
-1
No files matched your search
@@ -161,6 +161,11 @@ char const* File::name (void)
|
||||
return barename ? (barename + 1) : _path;
|
||||
}
|
||||
|
||||
char const* File::path (void)
|
||||
{
|
||||
return _path;
|
||||
}
|
||||
|
||||
bool File::isDirectory (void)
|
||||
{
|
||||
return _is_dir;
|
||||
|
||||
@@ -52,7 +52,7 @@ class File: public Stream
|
||||
File (FileSystemClass &fs);
|
||||
File (char const *filename, uint8_t mode, FileSystemClass &fs);
|
||||
File & operator = (const File &rhs);
|
||||
~File ();
|
||||
virtual ~File ();
|
||||
|
||||
bool open (char const *filename, uint8_t mode);
|
||||
|
||||
@@ -73,6 +73,7 @@ class File: public Stream
|
||||
void close (void);
|
||||
operator bool (void);
|
||||
char const* name (void);
|
||||
char const* path (void);
|
||||
|
||||
bool isDirectory (void);
|
||||
File openNextFile (uint8_t mode = FILE_READ);
|
||||
|
||||
Reference in new issue
Block a user