Fixes the creation of the default folder

Part of the commit https://github.com/TeamWin/android_bootable_recovery/commit/ff555665e463cfc82f0c2c5a3223d0fd326270e5 was preventing fastbootd mode from starting.

Change-Id: If48ffc3dc6948b15975fa872aebf9cec4040c90e
Signed-off-by: Fernando Oliveira <fernandoaju78@gmail.com>
diff --git a/twrp-functions.cpp b/twrp-functions.cpp
index 10a27f5..1a404c6 100644
--- a/twrp-functions.cpp
+++ b/twrp-functions.cpp
@@ -1452,10 +1452,12 @@
 
 	if (oldFolder == "" && customTWRPFolders.empty()) {
 		LOGINFO("No recovery folder found. Using default folder.\n");
-		TWPartition* SDCard = PartitionManager.Find_Partition_By_Path(DataManager::GetCurrentStoragePath());
-		if (SDCard->Mount(true)) {
-			mainPath += TW_DEFAULT_RECOVERY_FOLDER;
-			mkdir(mainPath.c_str(), 0777);
+		if (android::base::GetProperty(TW_FASTBOOT_MODE_PROP, "0") != "1") {
+			TWPartition* SDCard = PartitionManager.Find_Partition_By_Path(DataManager::GetCurrentStoragePath());
+			if (SDCard->Mount(true)) {
+				mainPath += TW_DEFAULT_RECOVERY_FOLDER;
+				mkdir(mainPath.c_str(), 0777);
+			}
 		}
 		goto exit;
 	} else if (customTWRPFolders.empty()) {