- Source:
Methods
(static) appendLine(filePath, text)
Añade una línea al final de un fichero de texto plano
Parameters:
Name | Type | Description |
---|---|---|
filePath |
string | Ruta del fichero |
text |
string | Texto a añadir |
- Source:
(static) readLineAtPos(filePath, position) → {returnData}
Leer una línea de un fichero en texto plano
Parameters:
Name | Type | Description |
---|---|---|
filePath |
string | Ruta del fichero |
position |
int | Posición del cursor |
- Source:
Returns:
success and string
- Type
- returnData
pathsToBase64(pathArray) → {Array.<string>}
A partir de una lista de ficheros, devuelve una lista de contenidos en base 64
Parameters:
Name | Type | Description |
---|---|---|
pathArray |
Array.<string> | Array the rutas de fichero |
- Source:
Returns:
Devuelve un base 64 por fichero
- Type
- Array.<string>
pathToBase64(path) → {string}
Devuelve el contenido del fichero en base 64
Parameters:
Name | Type | Description |
---|---|---|
path |
string | Ruta del fichero |
- Source:
Returns:
Contenido en base 64
- Type
- string