Skip to content

Commit 7cf353b

Browse files
committed
Fix libs download for release and add FS::mounpoint() getter
1 parent 822f252 commit 7cf353b

File tree

3 files changed

+11
-1
lines changed

3 files changed

+11
-1
lines changed

.github/scripts/on-release.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ LIBS_PACKAGE_SRC_URL=`cat $PACKAGE_JSON_TEMPLATE | jq -r ".packages[0].tools[] |
254254

255255
# Download the libs package
256256
echo "Downloading the libs archive ..."
257-
# curl -o "$LIBS_PACKAGE_SRC_ZIP" -LJO --url "$LIBS_PACKAGE_SRC_URL" || exit 1
257+
curl -o "$LIBS_PACKAGE_SRC_ZIP" -LJO --url "$LIBS_PACKAGE_SRC_URL" || exit 1
258258

259259
# Extract the libs package
260260
echo "Extracting the archive ..."

libraries/FS/src/FS.cpp

+8
Original file line numberDiff line numberDiff line change
@@ -300,6 +300,14 @@ bool FS::rmdir(const String &path)
300300
return rmdir(path.c_str());
301301
}
302302

303+
const char * FS::mountpoint()
304+
{
305+
if (!_impl) {
306+
return NULL;
307+
}
308+
return _impl->mountpoint();
309+
}
310+
303311

304312
void FSImpl::mountpoint(const char * mp)
305313
{

libraries/FS/src/FS.h

+2
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,8 @@ class FS
110110

111111
bool rmdir(const char *path);
112112
bool rmdir(const String &path);
113+
114+
const char * mountpoint();
113115

114116

115117
protected:

0 commit comments

Comments
 (0)