mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-16 06:18:42 +02:00
879 B
879 B
Home > bitburner > NS > getFileMetadata
NS.getFileMetadata() method
Get the metadata of a file.
Signature:
getFileMetadata(filename: string): FileMetadata;
Parameters
|
Parameter |
Type |
Description |
|---|---|---|
|
filename |
string |
Name of the file to read the metadata from. It must be a text file (.txt, .json, .css) or a script (.js, .jsx, .ts, .tsx). |
Returns:
The metadata of the file.
Remarks
RAM cost: 0 GB
This function returns the metadata associated with the specified file.