code: public PackageAssets getAssets(String packageName, boolean withVcsInfo) throws ServiceException {
          try {
              PackageDir pkgDir = getPackageDir(packageName);
              if (pkgDir == null) {
                  pkgDir = getGhostPackage(packageName);
                  if (pkgDir == null)
                      throw new DataAccessException("Missing package metadata directory: " + packageName);
              }
              List<AssetInfo> assets = new ArrayList<>();
              if (!DiffType.MISSING.equals(pkgDir.getVcsDiffType())) {
                  for (File file : pkgDir.listFiles()) {
                      if (file.isFile()) {
                          AssetFile assetFile = pkgDir.getAssetFile(file);
                          if (!MdwIgnore.isIgnore(assetFile))
                              assets.add(new AssetInfo(assetFile));
                      }
                  }
              }
  
              PackageAssets pkgAssets = new PackageAssets(pkgDir);
              pkgAssets.setAssets(assets);
  
              if (withVcsInfo) {
                  CodeTimer timer = new CodeTimer("AssetServices", true);
                  addVersionControlInfo(pkgAssets);
                  pkgAssets.sort();
                  timer.stopAndLogTiming("addVersionControlInfo(PackageAssets)");
              }
  
              return pkgAssets;
          }
          catch (Exception ex) {
              throw new ServiceException(ex.getMessage(), ex);
          }
      }
docs: Returns all the assets for the specified package.
  Does not use the AssetCache.