文件移动 import os # from main import run #import shutil path_to_watch = r'C:\Users\Administrator\Desktop\test\path_to_watch' # file_path = r"C:\Users\Adm ...
分类:
编程语言 时间:
2020-02-26 19:18:14
阅读次数:
83
java.io.FileNotFoundException:class path resource [kwhRules.json] cannot be resolved to absolute file path because it does not reside in the file syst ...
例:代码保存为del100k.py import os def get_path(file_path): for root, dirs, files in os.walk(file_path): for file in files: filename = os.path.join(root, fil ...
分类:
编程语言 时间:
2020-02-24 13:10:16
阅读次数:
88
采用递归的方式,逐层读取目录下的文件 public void getFile(String path, List<String> fileList) { File file = new File(path); if (file.isDirectory()) { File[] files = file ...
分类:
其他好文 时间:
2020-02-13 23:06:54
阅读次数:
74
使用栈 class Solution: def lengthLongestPath(self, input: str) -> int: input = input + '\n' # add trailing dummy \n stack = [] level = 1 current = '' res ...
分类:
其他好文 时间:
2020-02-07 01:38:00
阅读次数:
85
以3个节点为例子 1. 分别配置三个配置文件,文件目录,日志目录 systemLog: verbosity: 1 destination: file path: "/root/software/mongod_replication/replication2/logs/mongod.log" logA ...
分类:
数据库 时间:
2020-01-28 13:53:23
阅读次数:
83
安装R包时产生如下错误: Error in read.dcf(file.path(pkgname, "DESCRIPTION"), c("Package", "Type")) : 无法打开链结 此外: Warning messages: 1: In download.file(url, destfi ...
分类:
其他好文 时间:
2020-01-27 20:41:38
阅读次数:
1604
前言:学习 任意文件上传漏洞 影响的版本: jQuery File Upload版本 2.3.9(默认不再支持.htaccess) or others 远程命令执行漏洞: 文件越权删除漏洞 可以看下,下面的代码中 ,这里面如果我们的$file_path能够进行控制的话,那么就能够进行越权进行文件的删 ...
分类:
Web程序 时间:
2020-01-26 00:48:44
阅读次数:
171
# 4. read_config.py import configparser class ReadConfig: @staticmethod def get_config(file_path, section, option): cf = configparser.ConfigParser() # ...
分类:
其他好文 时间:
2020-01-24 15:54:38
阅读次数:
44
1、运行一个exe文件,发生中断 Ctrl+Alt+Delete打开任务管理器-->详细信息-->选择对应的应用名称,右键选择创建转储文件,等待文件创建完成。 2、打开WinDbg工具 2.1 设置符号表的方式 选择File>Symbol File Path,设置pdb文件的位置为待调试exe的pd ...
分类:
数据库 时间:
2020-01-19 22:28:33
阅读次数:
142