Quantumbraid's picture
download
raw
541 Bytes
"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
var fs_1 = __importDefault(require("fs"));
var filePath = process.argv[2];
var handler = function (stat) {
if (stat && stat.birthtime.getTime() > 0) {
process.exit(0);
}
};
fs_1.default.watchFile(filePath, { interval: 100 }, handler);
fs_1.default.stat(filePath, function (err, stat) {
handler(stat);
});

Xet Storage Details

Size:
541 Bytes
·
Xet hash:
5d6c188938adad78092212f87976b02f5849ea100c4ebaef817c1247f9ad4d51

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.