Search the Community
Showing results for tags 'nas'.
-
As for now I was using such kind of snippet: Local $aFTP_FileList = _FTP_ListToArray($hFTPSession, 2) For $iFTPFileSize_idx = 1 To $aFTP_FileList[0] ConsoleWrite('Pobieram informacje o pliku:' & $aFTP_FileList[$iFTPFileSize_idx] ) $iWielkoscPliku = _FTP_FileGetSize($hFTPSession, $aFTP_FileList[$iFTPFileSize_idx]) ConsoleWrite($iFTPFileSize_idx & ' : ' & $aFTP_FileList[$iFTPFileSize_idx] & ' rozmiar=' & $iWielkoscPliku) Sleep(200) Next But from some time my clients start buying cheap WD MyCloud NAS, and my problems starts. On all others NAS there is no problem (Seagate BlackArmour, QNAP, SYNOLOGY .... ). When on list there is for example 20 files then first two of them are very fast checked and reported they FileSize. After 2 files there is about 20 sec stop....... and next two files are checked with no errors but FileSize == 0 again there is about 20 sec stop....... and next two files are checked with no errors but FileSize == 0 again there is about 20 sec stop....... and next two files are checked with no errors but FileSize == 0 again there is about 20 sec stop....... and next two files are checked with no errors but FileSize == 0 again there is about 20 sec stop....... and next two files are checked with no errors but FileSize == 0 ....... In time when I process investigation I checked how : _FTP_ListToArray2D and _FTP_ListToArrayEx works and I was shocked that they works super fast. Here are the questions: Q1: Why does the problem occur only on WD MyCloud NAS? Q2: What is the significant difference that makes using _FTP_ListToArray2D and _FTP_ListToArrayEx to retrieve file sizes is still fast? Q3: Why _FTP_FileGetSize() not reporting @errors but returned FileSize = 0 Regards, mLipok