code: public Entry[] listEntries( DirectoryEntry directory )
      {
          File file = toFile( directory );
          if ( !file.isDirectory() )
          {
              return null;
          }
          File[] files = file.listFiles();
          Entry[] result = new Entry[files.length];
          for ( int i = 0; i < files.length; i++ )
          {
              if ( files[i].isFile() )
              {
                  result[i] = new DiskFileEntry( this, directory, files[i] );
              }
              else
              {
                  result[i] = new DefaultDirectoryEntry( this, directory, files[i].getName() );
              }
          }
          return result;
      }
docs: {@inheritDoc}