Hi Mona,<div><br></div><div>The way to get the default assetstore path is through the Assetstore model. Add the 'Assetstore' model to the models list in your controller class, and then you can call:</div><div><br>
</div><div>$assetstorePath = $this->Assetstore->getDefault()->getPath();</div><div><br></div><div>If what you are trying to do is find the absolute path of a bitstream, it is recommended to instead use $bitstreamDao->getFullPath().</div>
<div><br></div><div>Thanks,</div><div><br></div><div>Zach</div><div><br></div><div><br><br><div class="gmail_quote">On Tue, Sep 4, 2012 at 8:41 PM, Mona Wong <span dir="ltr"><<a href="mailto:mona@sdsc.edu" target="_blank">mona@sdsc.edu</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
Is there a way to get the directory path of the assetstore/ location from my module's controller?<br>
<br>
I know $this->getTempDirectory() will give me the path to tmp/misc/ so is there an equivalent to retrieving the full path to the assetstore/ ?<br>
<br>
Mona<br>
<br>
<br>
*********************************************<br>
Mona Wong<br>
Web & iPad Application Developer<br>
San Diego Supercomputer Center<br>
<br>
"Forgive everyone everything."<br>
-- Regina Brett<br>
*********************************************<br>
<br>
<br>
<br>
<br>
_______________________________________________<br>
Midas mailing list<br>
<a href="mailto:Midas@public.kitware.com">Midas@public.kitware.com</a><br>
<a href="http://public.kitware.com/cgi-bin/mailman/listinfo/midas" target="_blank">http://public.kitware.com/cgi-bin/mailman/listinfo/midas</a><br>
</blockquote></div><br><br clear="all"><div><br></div>
</div>