Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Using NAS
#1
Hi,

i'm in a windows environment, using a NAS as Storage.

My NAS is named 'nas1', and if pointing to that nas like '//nas1/dms/documents/' (UNC-Naming) some strange things happen and an error occurs, no document is stored while uploading, resp. stored in the app-path itself?

So i modified the 'inc.FileUtils.php' reading like this:

************************************************
function makeDir($path)
{
#modification start
if(substr($path,0,6)=='//nas1')
{
mkdir($path,0777,true);
return true;
}
#modification end


if (strncmp($path, DIRECTORY_SEPARATOR, 1) == 0) {
$mkfolder = DIRECTORY_SEPARATOR;
}
else {
$mkfolder = "";
}
$path = preg_split( "/[\\\\\/]/" , $path );
.....

************************************************

Ok, i first want to hear if this isn't good using mkdir this way.
If no complaints than i will do some more work on it.

Regards


Jörg
Reply


Messages In This Thread
Using NAS - by Vault - 06-28-2010, 05:12 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)