我有一个程序,它在给定路径上搜索文件夹,并提取文件夹内任何文件的路径或其中的任何子文件夹。在这里,它使用单独的文件路径创建一个名为ImageData的自定义类的对象。处理此问题的方法如下所示:
public void saveLatestImages(string chosenPath)
{
//if there is a Pictures folder
if (Directory.Exists(chosenPath))
{
//get number of files in folder
int fileCount = Directory
我正在创建一些新文件,并试图添加它们,但当我使用git add applications/libraries/calendarclass.php时,它不会识别我在那里有一个文件
我刚刚在textmate中创建了这个文件,并且正在查看它。如何将其添加到git?
releventz$ git add application/libraries/calendarclass.php
fatal: pathspec 'application/libraries/calendarclass.php' did not match any files
releventz$ ls
applica