getPublicDirectory method

String getPublicDirectory(
  1. String? filePath
)

Constructs the full path to a file in the public directory.

The filePath parameter is the relative path to the file.

Returns the absolute path as a String.

Implementation

String getPublicDirectory(String? filePath) {
  return pathTo("${WaServer.config.publicDir}/$filePath");
}