file-listing

In Git, how do I get a detailed list of file changes from one revision to another?

北城余情 提交于 2019-11-28 20:25:24
I use a Git repository on my server to version user data files sent to the server. I'm interested in getting a list of changed files between any two revisions. I know about git diff --name-only <rev1> <rev2> , but this only gives me a list of file names. I'm especially interested in renames and copies, too. Ideally, the output would be something like this: updated: userData.txt renamed: picture.jpg -> background.jpg copied: song.mp3 -> song.mp3.bkp Is it possible? --name-status also doesn't seem to indicate renames and copies. VonC git diff --name-status -C <rev1> <rev2> should be closer to

Echo each file in Fileset with size, date and time

梦想与她 提交于 2019-11-28 09:20:43
问题 I'm converting a DOS batch file to Ant. At the end of the batch file, I print out a list of files copied including size, date and time using the DOS dir command. I would like to do the same at the end of the Ant script. So far I have: <!-- LIST COPIED FILES --> <target name="summary" depends="backup"> <fileset id="zipfiles" dir="${dest}" casesensitive="yes"> <include name="*.zip"/> </fileset> <property name="prop.zipfiles" refid="zipfiles"/> <echo>${prop.zipfiles}</echo> </target> How can I

How to list only files and not directories of a directory Bash?

老子叫甜甜 提交于 2019-11-28 05:10:53
How can I list all the files of one folder but not their folders or subfiles. In other words: How can I list only the files? Using find : find . -maxdepth 1 -type f Using the -maxdepth 1 option ensures that you only look in the current directory (or, if you replace the . with some path, that directory). If you want a full recursive listing of all files in that and subdirectories, just remove that option. ls -p | grep -v / ls -p lets you show / after the folder name, which acts as a tag for you to remove. carlpett's find -based answer ( find . -maxdepth 1 -type f ) works in principle, but is

Get a list of all files inside of a directory in vb.net

谁都会走 提交于 2019-11-27 08:43:55
How can you obtain a list of files (as a stringcollection or some other storage method) which contains the full path on the user's computer to the files? Is there a method for doing so? It looks like you want to use Directory.GetFiles() in the System.IO namespace. Docs here . sansalk Dim txtFiles = Directory.GetFiles("C:\Input", "*.CSV", SearchOption.TopDirectoryOnly). [Select](Function(nm) Path.GetFileName(nm)) Dim arrayList As New System.Collections.ArrayList() For Each filenm As String In txtFiles arrayList.Add(New clsImportFiles(filenm)) Next Add a Listbox to Windows Form and Add following

How to list only files and not directories of a directory Bash?

纵饮孤独 提交于 2019-11-27 05:23:41
问题 How can I list all the files of one folder but not their folders or subfiles. In other words: How can I list only the files? 回答1: Using find : find . -maxdepth 1 -type f Using the -maxdepth 1 option ensures that you only look in the current directory (or, if you replace the . with some path, that directory). If you want a full recursive listing of all files in that and subdirectories, just remove that option. 回答2: ls -p | grep -v / ls -p lets you show / after the folder name, which acts as a

Get a list of all files inside of a directory in vb.net

扶醉桌前 提交于 2019-11-26 14:19:20
问题 How can you obtain a list of files (as a stringcollection or some other storage method) which contains the full path on the user's computer to the files? Is there a method for doing so? 回答1: It looks like you want to use Directory.GetFiles() in the System.IO namespace. Docs here. 回答2: Dim txtFiles = Directory.GetFiles("C:\Input", "*.CSV", SearchOption.TopDirectoryOnly). [Select](Function(nm) Path.GetFileName(nm)) Dim arrayList As New System.Collections.ArrayList() For Each filenm As String In