name: WorkingWithFiles
main: ru.Swimer.WorkingWithFiles
version: 0.0.2
author: Swimer

commands:
  delete:
    description: Delete file in server directory
    usage: /<command> [filepath (serverDirectory/ ...)]
    permission: workwithfiles.delete
  listfiles:
    description: List of files in directory
    usage: /<command> [path (serverDirectory/ ..)]
    permission: workwithfiles.listfiles
  listdirs:
    description: List of directories in directory
    usage: /<command> [path (serverDirectory/ ..)]
    permission: workwithfiles.listdirs
  readfile:
    description: Read file content
    usage: /<command> [filepath (serverDirectory/ ...)]
    permission: workwithfiles.readfile
  loadfile:
    description: Download file from url to server
    usage: /<command> [url] [filepath (serverDirectory/ ...)]
    permission: workwithfiles.loadfile
  unzip:
    description: Decompress archive
    usage: /<command> [zip path (serverDirectory/ ...)] [destpath (serverDirectory/ ...)]
    permission: workwithfiles.unzip
  filemd5:
    description: Get file md5 hash
    usage: /<command> [filepath (serverDirectory/ ...)]
    permission: workwithfiles.filemd5
  sizeof:
    description: Get size of file
    usage: /<command> [filepath (serverDirectory/ ...)]
    permission: workwithfiles.sizeof

permissions:
  workwithfiles.*:
    description: Gives access to all WorkingWithFiles commands
    children:
      workwithfiles.delete: true
      workwithfiles.listfiles: true
      workwithfiles.listdirs: true
      workwithfiles.readfile: true
      workwithfiles.loadfile: true
      workwithfiles.unzip: true
      workwithfiles.filemd5: true
      workwithfiles.sizeof: true

  workwithfiles.delete:
    description: Delete file from server
    default: op
  workwithfiles.listfiles:
    description: Get files in directory
    default: op
  workwithfiles.listdirs:
    description: Get directories in directory
    default: op
  workwithfiles.readfile:
    description: Get file content
    default: op
  workwithfiles.loadfile:
    description: Download file to server
    default: op
  workwithfiles.unzip:
    description: Decompress archive
    default: op
  workwithfiles.filemd5:
    description: Get file md5
    default: op
  workwithfiles.sizeof:
    description: Get a size of file
    default: op
