• How does JavaScript parse local xml files


    project function local analysis upload files <input class=”input” ref=”file” type=”file” @change=”handleFileChange” /> parse the file object Get the file object and get the local url path address // Get the local upload file path const getUploadUrl = function(flie) { let url = “”; if (window.createObjectURL != undefined) { // basic url = window.createObjectURL(flie); } else […]

  • Share code snippets: A tool for programmatically and conveniently writing directly to jar/war packages


    Sometimes, we want to write a new file to an existing jar/war package, or overwrite an existing file;It would be great if the files in the jar/war package could be manipulated like a normal file system, then the followingWarWriter.javaJust such a tool: package kilim.tools; import java.io.File; import java.io.FileInputStream; import java.io.FileOutputStream; import java.io.IOException; import java.io.InputStream; import […]

  • PHP delete non-empty directory


    background Using composer to install a private gitlab repository class library will automatically generate a .git directory, which will cause the class library to not directly go to the git repository. Every time you want to delete this directory manually, you want to use composer’s scripts function to delete it automatically. draw function scandir lists […]