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

as i wrote it wasn't possible to point to an other Resource using an UNC-Path like '\\nas1\dms\documents\' or '//nas1/dms/documents/'.

The first two slashes have been handled not correct, so at the end my documents resided in the path of the installation of my dms, locally, beneath
a 'nas1/dms/documents/1048576'-Folder, and so on.

You understand?

The documents were not saved on the NAS but locally!
It worked out that the saveing-routine has a problem, the (i call it) path translation in it.

And, of course, they will never be found, because reading the documets the path points to the NAS, but no documents there!
And the reading routine does no path-translation.

And, of course, the code i posted is absolutely specific to me.
I posted it to demonstrate what happend at my side.

And the question was why not use 'mkdir($path,0777,true);' at all, but juggling with every single folder in the path while saving.

So, i would like to replace the makeDir-Function like this:


function makeDir($path)
{
mkdir($path,0777,true);
return true;
}



Regards

Jörg
Reply


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

Forum Jump:


Users browsing this thread: