Lines Matching refs:name
164 constructor(name, type, path, filepath = path && join(path, name)) {
165 this.name = name;
201 constructor(name, stats, path, filepath) {
202 super(name, null, path, filepath);
207 for (const name of ReflectOwnKeys(Dirent.prototype)) {
208 if (name === 'constructor') {
211 DirentFromStats.prototype[name] = function() {
212 return this[kStats][name]();
225 function join(path, name) {
227 name === undefined) {
231 if (typeof path === 'string' && isUint8Array(name)) {
233 return Buffer.concat([pathBuffer, name]);
236 if (typeof path === 'string' && typeof name === 'string') {
237 return pathModule.join(path, name);
240 if (isUint8Array(path) && isUint8Array(name)) {
241 return Buffer.concat([path, bufferSep, name]);
257 const name = names[i];
262 filepath = join(path, name);
272 names[idx] = new DirentFromStats(name, stats, path, filepath);
293 function getDirent(path, name, type, callback) {
298 filepath = join(path, name);
308 callback(null, new DirentFromStats(name, stats, path, filepath));
311 callback(null, new Dirent(name, type, path));
314 const filepath = join(path, name);
317 return new DirentFromStats(name, stats, path, callback === true ? filepath : path);
320 return new Dirent(name, type, path);
322 return new Dirent(name, type, path, path);
587 function stringToFlags(flags, name = 'flags') {
589 validateInt32(flags, name);
649 function toUnixTimestamp(time, name = 'time') {
664 throw new ERR_INVALID_ARG_TYPE(name, ['Date', 'Time in seconds'], time);
899 const validateStringAfterArrayBufferView = hideStackFrames((buffer, name) => {
914 name,
920 const validatePrimitiveStringAfterArrayBufferView = hideStackFrames((buffer, name) => {
923 name,
930 const validatePosition = hideStackFrames((position, name) => {
932 validateInteger(position, name);
935 throw new ERR_OUT_OF_RANGE(name,
940 throw new ERR_INVALID_ARG_TYPE(name, ['integer', 'bigint'], position);