directory

Maven assembly plugin: include file without taking its path folders

梦想的初衷 提交于 2019-12-12 18:24:35
问题 I'm using maven-assembly-plugin to include files from a dependency ZIP (also generated with assembly plugin) into a final release ZIP file. The issue is that I want to select which files from the dependency to get, but not copying the folder path where those files are. Just the files. For example: <assembly> <formats> <format>zip</format> <format>dir</format> </formats> <includeBaseDirectory>false</includeBaseDirectory> <dependencySets> <dependencySet> <includes> <include>package:artifactId

Multiple wildcard directory/file search for arbitrary directory structure in C# .net

痴心易碎 提交于 2019-12-12 17:40:23
问题 I am building a Windows application in Visual Studio 2012 in C# and .net 4.0. One of the functions of the program is to search for all files that meet a given search criteria, which usually (but doesn't always) include wildcards. The search criteria is unknown at run time; it is imported from an excel spreadsheet. Possible search criteria can include the following: Exact path "C:\temp\directory1\directory2\someFile.txt" Path, with wildcards in the filename: "C:\temp\directory1\directory2*.*"

Apply existing VBS folder search to sub folders?

旧时模样 提交于 2019-12-12 17:24:42
问题 I am using the following code to search a folder for a file name, open the file run an excel macro, save the file, and close. I would like to extend this to loop through sub folders and do the same. There should only be one layer of sub folders but multiple folders in that layer. dir = "C:\Users\ntunstall\Desktop\test" Sub RunMacroAndSaveAs(file, macro) Set wb = app.Workbooks.Open(file) app.Run wb2.Name & "!" & macro wb.SaveAs fso.BuildPath(file.ParentFolder, fso.GetBaseName(file) & ".xlsm"),

Why does Eclipse not allow me to create sub folders correctly?

送分小仙女□ 提交于 2019-12-12 17:20:16
问题 When I'm trying to create a folder structure in my Resources folder, Eclipse messes it up. For example I have an image stored in /Resources/Graphics/SomeFolder/example.gif In the Package/Project Explorer I have then an empty package Graphics and a different package called Graphics.SomeFolder . Now I can't load the image when I try to access is with the normal path. For clarification I created this folder structure \Resources\graphics\images\subfolder\image.gif and this is what Eclipse makes

How to upload image in a specific folder php?

荒凉一梦 提交于 2019-12-12 17:15:59
问题 I have xampp installed and I have a program that you choose a file and it gets uploaded to my server. I have a folder in htdocs called uploads thats meant for storing the pictures. When I upload them, it goes in the htdocs, but not the folder in htdocs i want. I did specify that i needed it to go there. Can someone help? Heres the code: <?php @$name = $_FILES['file']['name']; @$size = $_FILES['file']['size']; @$type = $_FILES['file']['type']; @$tmp_name = $_FILES['file']['tmp_name']; if

获取txt中的内容 把其中的base64转换成图片保存到指定文件夹

怎甘沉沦 提交于 2019-12-12 17:02:58
直接上代码: /// <summary> /// 将Base64字符串转换为图片并保存到本地 /// </summary> /// <param name="base64Str">访问的txt文件路径</param> /// <param name="savePath">图片保存地址,如:/Content/Images/10000.png</param> /// <returns></returns> public static bool Base64StrToImage(string txtPath, string savePath) { var ret = true; try { var ds= System.IO.File.ReadAllText(txtPath); ds = ds.Replace("\r\n",""); ds = ds.Replace("\r",""); var data = JsonConvert.DeserializeObject<Rootobject>(ds); List<string> base64s = new List<string>();//所有的图片base64 data.Result.Data.XXCJ_TX.ROW.ForEach(e=>base64s.Add(e.TX)); data.Result.Data.XXCJ_TSBJ.ROW

How to Set Permission for folders/files in iOS

自闭症网瘾萝莉.ら 提交于 2019-12-12 16:20:19
问题 How can I set permission to folders and files in iOS which is there inside documents folder? Is it possible to set read only permission while creating files inside documents folder? Or any alternative solution ? 回答1: Depending on how you create the file, you can specify file attributes. To make a file read-only, pass the following attributes: NSDictionary *attributes = @{ NSFilePosixPermissions : @(0444) }; Note the leading 0 in the value. That's important. It indicates that this is an octal

海思3516cv500 SDK开发环境搭建

断了今生、忘了曾经 提交于 2019-12-12 14:21:02
【推荐】2019 Java 开发者跳槽指南.pdf(吐血整理) >>> 环境Ubuntu 16.0.4 LTS, SDK文件:Hi3516CV500_SDK_V2.0.1.0.tgz,解压此文件到当前目录运行Hi3516CV500_SDK_V2.0.1.0目录下的sdk.unpack,执行此脚本时报unknown source,但sdk.unpack脚本里确实有scripts/common.sh文件,网上有接近方案参考: $ tar -xf /dataset/hi3516cv500+imx327/编译器/arm-himix200-linux.tgz $ cd arm-himix200-linux $ sudo ./arm-himix200-linux.install Installing HuaWei LiteOS Linux at /opt/hisi-linux/x86-arm mkdir: created directory '/opt/hisi-linux' mkdir: created directory '/opt/hisi-linux/x86-arm' mkdir: created directory '/opt/hisi-linux/x86-arm/arm-himix200-linux' Extract cross tools ... ##交叉编译工具安装成功

C# Dialog to select multiple files AND folders [duplicate]

狂风中的少年 提交于 2019-12-12 13:27:01
问题 This question already has an answer here : Closed 7 years ago . Possible Duplicate: Required Dialog for selecting Multiple Files and Folders .NET I am searching for a dialog that'll allow the user to select multiple files and folders, simply in one dialog. I've searched the internet but had no good luck finding something that'd do the trick, only something that applied for C++. Please correct me if there IS already an answer out there, because I have seriously spent time trying to find a

.gitignore to ignore all files, then recursively allows files of a certain type

戏子无情 提交于 2019-12-12 11:37:56
问题 I have a folder that is purely a T4 template folder but it outputs code generated files into other directories. So I'm looking to ignore everything except *.tt files (i.e. the *.cs, *.master, *.resx, etc.). There is one gotcha. I have a subfolder called static that contains files that should never be ignored. /Test.tt /Test.cs /TestHtml.tt /TestHtml.html /Static /Sub/Sub.cs /Sub/Sub2/Sub2.cs /Sub3/Sub4/Sub5/Sub5.html I only want to ignore the /Test.cs and /Test.html but include all other