function _next() {
         // Iterator is not fully initialized yet. Finish
         // initialization.
         if (!this._started) {
            this._started = true;
            this._handle = WinFile.FindFirstFile(this._pattern, gFindDataPtr);
            if (this._handle == null) {
              let error = ctypes.winLastError;
              if (error == Const.ERROR_FILE_NOT_FOUND) {
                this.close();
                return null;
              } else {
                throw new File.Error("iter (FindFirstFile)", error);
              }
            }
            return gFindData;
         }

         // We have closed this iterator already.
         if (!this._handle) {
           return null;
         }

         if (WinFile.FindNextFile(this._handle, gFindDataPtr)) {
           return gFindData;
         } else {
           let error = ctypes.winLastError;
           this.close();
           if (error == Const.ERROR_NO_MORE_FILES) {
              return null;
           } else {
              throw new File.Error("iter (FindNextFile)", error);
           }
         }
       }
/**
        * Fetch the next entry in the directory.
        *
        * @return null If we have reached the end of the directory.
        */
Fetch the next entry in the directory.
@return null If we have reached the end of the directory.
Fetch the next entry in the directory . @return null If we have reached the end of the directory .
function _next() {
         if (!this._started) {
            this._started = true;
            this._handle = WinFile.FindFirstFile(this._pattern, gFindDataPtr);
            if (this._handle == null) {
              let error = ctypes.winLastError;
              if (error == Const.ERROR_FILE_NOT_FOUND) {
                this.close();
                return null;
              } else {
                throw new File.Error("iter (FindFirstFile)", error);
              }
            }
            return gFindData;
         }
         if (!this._handle) {
           return null;
         }
         if (WinFile.FindNextFile(this._handle, gFindDataPtr)) {
           return gFindData;
         } else {
           let error = ctypes.winLastError;
           this.close();
           if (error == Const.ERROR_NO_MORE_FILES) {
              return null;
           } else {
              throw new File.Error("iter (FindNextFile)", error);
           }
         }
       }
function _next ( ) { if ( ! this . _started ) { this . _started = true ; this . _handle = WinFile . FindFirstFile ( this . _pattern , gFindDataPtr ) ; if ( this . _handle == null ) { let error = ctypes . winLastError ; if ( error == Const . ERROR_FILE_NOT_FOUND ) { this . close ( ) ; return null ; } else { throw new File . Error ( "iter (FindFirstFile)" , error ) ; } } return gFindData ; } if ( ! this . _handle ) { return null ; } if ( WinFile . FindNextFile ( this . _handle , gFindDataPtr ) ) { return gFindData ; } else { let error = ctypes . winLastError ; this . close ( ) ; if ( error == Const . ERROR_NO_MORE_FILES ) { return null ; } else { throw new File . Error ( "iter (FindNextFile)" , error ) ; } } }
Fetch the next entry in the directory.
Fetch the next entry in the directory .
// Iterator is not fully initialized yet. Finish // initialization. // We have closed this iterator already.