title: How can I get the local filesystem path of the public folder for a meteor phonegap app with javascript
body: <p>In a meteor phonegap app, all the files in /public get downloaded to the device local file system. </p>
  
  <p>On the disk, the public folder path is something like: </p>
  
  <pre><code>/Users/abc/Library/Developer/CoreSimulator/Devices/065B5AF8-FE25-4813-8E7D-AA88270DAD88/data/Containers/Data/Application/F73D96BC-EA19-4584-BE52-1D3B3AB8197C/Library/NoCloud/meteor/415e7371b3dc46d1fe41d04a4c4b6cb4ffc40811/
  </code></pre>
  
  <p>I can easily get the bit before '/meteor/' by calling cordova.file.dataDirectory, but how can I get that version kinda id after '/meteor/'? I guess it's some kinda hot code push version number?</p>
  
  <p>I know I can use the file api to read the directory but is there a more elegant way from meteor itself which can provide the same info? </p>