mirror of
https://code.forgejo.org/actions/setup-python.git
synced 2026-03-22 06:55:54 +03:00
15 lines
441 B
JavaScript
15 lines
441 B
JavaScript
"use strict";
|
|
|
|
const BlobImpl = require("./Blob-impl").implementation;
|
|
|
|
exports.implementation = class FileImpl extends BlobImpl {
|
|
constructor(args, privateData) {
|
|
const fileBits = args[0];
|
|
const fileName = args[1];
|
|
const options = args[2];
|
|
super([fileBits, options], privateData);
|
|
|
|
this.name = fileName.replace(/\//g, ":");
|
|
this.lastModified = "lastModified" in options ? options.lastModified : Date.now();
|
|
}
|
|
};
|