Git Product home page Git Product logo

chfiles's Introduction

CHFiles is a CommandHelper extension that allows you to work with files and directory and interact with them from whithin your server.

Latest release: v1.0.3

Functions:

  • copy_file(FromFile, ToFile) - Copy a file (or directory) to another location, with a new name

  • create_file(PathToFile) - Create a new file

  • delete_file(PathToFile) - Delete an extension file or directory

  • list_files(PathToDirectory) - Lists all files and directories in given directory

  • rename_file(PathToFile) - Rename a file

  • write_file(PathToFile, content, [mode]) - Write text to a file. mode is optional, can be OVERWRITE or APPEND

  • file_exists(Path) - Check if a file exists, returns true or false

chfiles's People

Contributors

eatsteak avatar macjuul avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

chfiles's Issues

Dont think this works

>list_files
[02:03:24 INFO]: CH: Running original command from a MCCommandSender ----> /list_files
[02:03:24 INFO]: An unexpected exception occured during the execution of a script.
[02:03:24 WARN]: java.lang.NoSuchMethodError: com.laytonsmith.core.constructs.CArray.push(Lcom/laytonsmith/core/constructs/Construct;)V
[02:03:24 WARN]:        at me.macjuul.chfiles.functions.functions$list_files.exec(functions.java:464)
[02:03:24 WARN]:        at com.laytonsmith.core.Script.eval(Script.java:375)
[02:03:24 WARN]:        at com.laytonsmith.core.MethodScriptCompiler.execute(MethodScriptCompiler.java:1995)
[02:03:24 WARN]:        at com.laytonsmith.core.MethodScriptCompiler.execute(MethodScriptCompiler.java:1952)
[02:03:24 WARN]:        at com.laytonsmith.core.Script.run(Script.java:207)
[02:03:24 WARN]:        at com.laytonsmith.core.AliasCore.alias(AliasCore.java:153)
[02:03:24 WARN]:        at com.laytonsmith.commandhelper.CommandHelperServerListener.onServerCommand(CommandHelperServerListener.java:39)
[02:03:24 WARN]:        at com.destroystokyo.paper.event.executor.asm.generated.GeneratedEventExecutor39.execute(Unknown Source)
[02:03:24 WARN]:        at org.bukkit.plugin.EventExecutor$1.execute(EventExecutor.java:44)
[02:03:24 WARN]:        at co.aikar.timings.TimedEventExecutor.execute(TimedEventExecutor.java:78)
[02:03:24 WARN]:        at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62)
[02:03:24 WARN]:        at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:517)
[02:03:24 WARN]:        at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:502)
[02:03:24 WARN]:        at net.minecraft.server.v1_11_R1.DedicatedServer.aM(DedicatedServer.java:436)
[02:03:24 WARN]:        at net.minecraft.server.v1_11_R1.DedicatedServer.D(DedicatedServer.java:404)
[02:03:24 WARN]:        at net.minecraft.server.v1_11_R1.MinecraftServer.C(MinecraftServer.java:754)
[02:03:24 WARN]:        at net.minecraft.server.v1_11_R1.MinecraftServer.run(MinecraftServer.java:652)
[02:03:24 WARN]:        at java.lang.Thread.run(Thread.java:745)
/list_files = list_files('/')

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.