1 Feb 2010 12:05
patch and suggestion
Hi, Normally, wp does not allow to drag and drop directories to file storage, I think this is also true for windows. I changed in line 215 of /lib/pwiki/wikidata/FileStorage.py if not os.path.isfile(srcPath): to if not (os.path.isfile(srcPath) or os.path.isdir(srcPath)): now I can drag and drop directories to file storage! ----------------------------------------------------------- suggestion: I think it is better if files re actually moved to file storage, rather than copied. I changed line 74 in /lib/pwiki/OsAbstract.py shutil.copy2(srcPath, dstPath) to shutil.move(srcPath, dstPath) and files are moved instead of coped to file storage! cheers, bjorn ------------------------------------
RSS Feed