1. 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!

  2. LOOKING FOR A VERSION OF SKRIPT?

    You can always check out our Wiki for downloads and any other information about Skript!

Dismiss Notice
This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

skUtilities Create ZIP

Discussion in 'Skript' started by Riknesh, May 26, 2020.

Thread Status:
Not open for further replies.
  1. Riknesh

    Riknesh Active Member

    Joined:
    Jun 9, 2017
    Messages:
    76
    Likes Received:
    2
    Im trying to create a zip file with skUtilities. But everytime I run the code, Im getting this error:
    Code (Text):
    1. [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 (Text):
    1. command /filetest <text>:
    2.     permission: asdad
    3.     trigger:
    4.         if directory "%arg%" does not exist:  
    5.             send "Directory doesnt exist."
    6.             stop
    7.         else:
    8.             send "Directory %arg% exists."
    9.             wait 1 second
    10.             if directory "plugins\Sk-Backup\test" does not exist:
    11.                 create directory "plugins\Sk-Backup\test"
    12.                 send "Created test folder"
    13.             else:
    14.                 send "test folder exists."
    15.             wait 1 second
    16.             if directory "plugins\Sk-Backup\test\backup.zip" does not exist:
    17.                 create zip file "plugins\Sk-Backup\test\backup.zip"
    18.                 send "Created backup.zip zip file"
    19.             else:
    20.                 send "backup.zip zip exists."
    21.                 stop
    22.             wait 1 second
    23.             skutil zip directory "%arg%" to zip "plugins\Sk-Backup\test\backup.zip"
    24.             send "Zipped directory"
    25.         stop
    26.        
    27. on file zip:
    28.     broadcast "%event-file%"
    29.     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)
     
  2. WeeHee

    WeeHee Active Member

    Joined:
    Mar 4, 2017
    Messages:
    108
    Likes Received:
    21
  3. Riknesh

    Riknesh Active Member

    Joined:
    Jun 9, 2017
    Messages:
    76
    Likes Received:
    2
Thread Status:
Not open for further replies.

Share This Page

Loading...