Quantcast
Channel: SCN : All Content - All Communities
Viewing all articles
Browse latest Browse all 3363

WebIDE Create new file

$
0
0

HI,

 

Which API should I use in order to create/generate new file in the WebIDE ?

I've content which I want to put inside generated file.

 

my project is build like

 

myProj

    folderA

        fileA

    FolderB

        fileB

 

Lest assume that I need to create new html file inside folderA.

Which services I need to use ?

i've the

service.filesystem.documentProvider

 

I saw the service but not sure if it is the right service and how to use it inside my project for specific folder

oFolderDocument.importFile(new Blob([ my  content])

 

 

Example will be very helpful

 

Message was edited by: Stephane Singler


Viewing all articles
Browse latest Browse all 3363

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>