alternative way to check if file is executable
Abierto
- Lenguaje dominante
- JavaScript
- Estrellas
- 28
- Forks
- 8
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Descripción
just fyi this might be another way (better? dunno)
https://stackoverflow.com/a/41929624/1223975
```js
const fs = require('fs');
fs.access('./foobar.sh', fs.constants.X_OK, (err) => {
console.log(err ? 'cannot execute' : 'can execute');
});
```
Guía de contribución
No hay ninguna guía de contribución indexada para este repositorio
Línea de trabajo
Review the linked Stack Overflow example and compare its fs.access(..., fs.constants.X_OK, ...) behavior with the repository's current executable check. Decide whether the alternative should replace the existing approach, then add or update coverage for the chosen behavior.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- javascript
- Área
- tooling
- Tipo de issue
- Refactorización
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Estado de actividad
- Estancado
- Claridad
- Necesita aclaración
- Aptitud para principiantes
- 25/100