Documentationcurrent version
Help us improve the docs by fixing typos and proposing enhancements.

Nikita

Action "fs.base.lstat"

Retrieve file information. If path is a symbolic link, then the link itself is stated, not the file that it refers to.

Schema definitions

definitions =
  config:
    type: 'object'
    properties:
      'target':
        type: 'string'
        description: '''
        Location of the file from where to obtain information.
        '''
    required: ['target']

Handler

handler = ({config}) ->
  await @fs.base.stat
    target: config.target
    dereference: false

Exports

module.exports =
  handler: handler
  metadata:
    argument_to_config: 'target'
    log: false
    raw_output: true
    definitions: definitions
Edit on GitHub
Navigate
About

Nikita is an open source project hosted on GitHub and developed by Adaltas.