skUtilities Create ZIP

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!

    Now, what are you waiting for? Join the community now!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Status
Not open for further replies.

Riknesh

Active Member
Jun 9, 2017
76
2
8
Malaysia
Im trying to create a zip file with skUtilities. But everytime I run the code, Im getting this error:
Code:
[14:07:56 ERROR]: [skUtilities] v0.9.2: Directory: 'C:\Users\ASUS\Server\t30123\plugins\MobArena' doesn't exist, or doesn't have write permission! (EffZipDirectory.class)


This is my test code
Code:
command /filetest <text>:
    permission: asdad
    trigger:
        if directory "%arg%" does not exist:  
            send "Directory doesnt exist."
            stop
        else:
            send "Directory %arg% exists."
            wait 1 second
            if directory "plugins\Sk-Backup\test" does not exist:
                create directory "plugins\Sk-Backup\test"
                send "Created test folder"
            else:
                send "test folder exists."
            wait 1 second
            if directory "plugins\Sk-Backup\test\backup.zip" does not exist:
                create zip file "plugins\Sk-Backup\test\backup.zip"
                send "Created backup.zip zip file"
            else:
                send "backup.zip zip exists."
                stop
            wait 1 second
            skutil zip directory "%arg%" to zip "plugins\Sk-Backup\test\backup.zip"
            send "Zipped directory"
        stop
       
on file zip:
    broadcast "%event-file%"
    broadcast "%event-string%"

Using Skript version 2.5-alpha3 and skUtilities version 0.9.2 on Paper version git-Paper-316 (MC: 1.15.2)
 
Status
Not open for further replies.