Sharepoint create folder exists

Hello guys,
I need to find if a folder already exists in SharePoint site.
I have used find files activity and created output variable —> Resultfile
Now I used for each and and in for each used get files/folder
in the id filed wrote current drive.parentrefence.id
but there is no result.Even I have assigned activity as parent id = currentdrive.parentreference.id
but in the immediate panel I am able to see the drive id, by writing as currentdrive.parentreference.id but I am getting the output within the activity

can some one provide detailed steps on how to do that
finding if a folder already exists, if not create folder and upload file into that.

My usecase is to read eml file and create a folder in sharepoint based on the subject and upload
the attachment into that folder.

@kishore_praveen
Please check this out:
O365 Activities - Upload File To SharePoint Document Library Top Level

Hope it helps