<commit_before>const fs = require('fs');
const path = require('path');
const util = require('util');
const debug = require('debug')('Oca');
const ValidationFail = require('../../Error/ValidationFail');
const Input = require('../../Input');
const BaseText = require('./BaseText');


/**
* File Path input
*
* ```javascript
* const input = Input.create('myInput: filePath');
* input.setValue('/tmp/foo.txt');
* ```
*
* <h2>Property Summary</h2>
*
* Property Name | Description | Defined&nbsp;by Default | Default Value
* --- | --- | :---: | :---:
* restrictWebAccess | boolean telling if the input should have restrict access \
* when handling requests. When enabled it only lets the input to be set by a file upload, \
* making sure that the input cannot be set otherwise (like through a string) | ::on:: | ::true::
* maxFileSize | maximum file size in bytes | ::off:: | ::none::
* exists | checks if the file path exists | ::off:: | ::none::
* allowedExtensions | specific list of extensions allowed by the input \
* (this check is case insensitive), example: ['jpg', 'png'] | ::off:: | ::none::
*<commit_msg>improved FilePath documentation<commit_after>const fs = require('fs');
const path = require('path');
const util = require('util');
const debug = require('debug')('Oca');
const ValidationFail = require('../../Error/ValidationFail');
const Input = require('../../Input');
const BaseText = require('./BaseText');


/**
* File Path input.
*
* ```javascript
* const input = Input.create('myInput: filePath');
* input.setValue('/tmp/foo.txt');
* ```
*
* <h2>Property Summary</h2>
*
* Property Name | Description | Defined&nbsp;by Default | Default Value
* --- | --- | :---: | :---:
* restrictWebAccess | boolean telling if the input should have restrict access \
* when handling requests. When enabled it only lets the input to be set by a file upload, \
* making sure that the input cannot be set otherwise (like through a string) | ::on:: | ::true::
* maxFileSize | maximum file size in bytes | ::off:: | ::none::
* exists | checks if the file path exists | ::off:: | ::none::
* allowedExtensions | specific list of extensions allowed by the input \
* (this check is case insensitive), example: ['jpg', 'png'] | ::off:: | ::none::
*
{'fraction_non_alphanumeric': 0.17925793473401877, 'fraction_numerical': 0.001788109074653554, 'mean_word_length': 4.278301886792453, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3798563', 'n_tokens_mistral': 625, 'n_tokens_neox': 623, 'n_words': 238}