That's interesting! dang. We have a single site install and symlink the files off to a NAS, now it would be really annoying if some script attempted to move those files off the NAS simply because we left the default files/ folder.
<br><br>Perhaps this has been over-engineered at this point. Some people have multi-site installs, some people don't. There is already a warning that shows if Drupal thinks there is a problem with the files folder, maybe just add a note to that which states: Hey if you have a multi-site install consider doing
<span style="font-weight: bold;">this really cool thing over here</span>. Then provide them with a helper link to a function which sets up that really cool thing.<br><br>Kevin<br><br><div><span class="gmail_quote">On 4/23/07,
<b class="gmail_sendername">Johan Forngren</b> <<a href="mailto:johan@forngren.com">johan@forngren.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<span>Hi all,<br><br>I need help with turning this query into something useful<br><br>SELECT fid FROM {files} WHERE filepath LIKE 'files/%' LIMIT 1<br></span><span><br><span style="color: rgb(102, 102, 102);">if (count(db_fetch_object(db
</span><span style="color: rgb(102, 102, 102);">_query("SELECT fid FROM {files} WHERE filepath LIKE 'files/%' LIMIT 1"))) == 1) {
</span><br><br></span><span>The purpose is to determine if there is some files within the dir 'files' registered in the db. I'm stuck at the db_* stuff, any help would be greatly appreciated. See also <a href="http://drupal.org/node/98824" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
http://drupal.org/node/98824</a> .<br><br>Thank you<br clear="all"></span><span class="sg"><br>-- <br>Regards,<br> Johan Forngren <br><br> <a href="mailto:johan@forngren.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
johan@forngren.com</a> :: <a href="http://johan.forngren.com/" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://johan.forngren.com/
</a>
</span></blockquote></div><br>