Home Identifier Source Repository
import {$FileUtil} from 'angie/src/util/Util.js'
public class | since 0.3.1 | source

$FileUtil

$FileUtil is a silent utility class which is not available via any provider on the app object. The only way to access the methods on this class is to import the module. It holds methods quintessential to file management.

Static Method Summary

Static Public Methods
public static

find(root: string, target: string): string

Util helper to help find files in the specified root

since 0.2.4

Static Public Methods

public static find(root: string, target: string): string since 0.2.4 source

Util helper to help find files in the specified root

Params:

NameTypeAttributeDescription
root string

The root directory in which to find files

target string

The desired file name

Return:

string

The content of the file

Example:

$FileUtil.find(process.cwd(), 'test');