Folders in Gitlab? - directory

I am trying to create folders in Gitlab through the web interface. I was able to see some repositories with folders. I could not find any option to create such folders. How are such folders created?

If you specified a path for a file, Gitlab will create directories if they not exists.
For example, if you add a file named dir1/dir2/test.md, Gitlab create two nested directories with test.md inside.

Related

Copy Just the Folder

I wanted to Copy just a single folder at a time from one location to another
Currently i hv to First go to the rename copy the name and come back to current location and create a new folder and paste the name
Just like TreeCopy Which copies folder complete structure
is there anything through which i can speed up this process and just generate a single folder from a 3000+ Collection of Folders
How can i copy just one folder from one location to another without copying anything inside it neither content nor sub folders.
if you know the way let me know.
I know how hectic that work can get, but luckily there's an easy way around this.
Type in the following command in command prompt(cmd).
I think you need to have administrator rights for this.
xcopy “c:\users\cdwyer\documents\OriginalFolder” “c:\users\cdwyer\documents\NewFolder” /T /E
The command is xcopy and it takes two parameters, the path of original folder and the path of new folder you want to create with the original folder structure.
/T is just another parameter that ensures to only copy the folder structure, not the files.
/E is another parameter you can include to make sure empty folders are created.
If you have any other queries, just go through this website.
https://camerondwyer.com/2013/07/05/how-to-copy-an-entire-folder-structure-without-copying-the-files-tip-for-starting-the-new-financial-year/

In JFrog Artifactory can we customize artifacts folders in the virtual repository

See for example I have local repository with some artifacts inside a folder "TEST", I have created a virtual repository and included the above local repository, can I rename "TEST" folder inside virtual repository?
Not sure how you would like to change the folder 'TEST'? Can you elaborate on how you will change the name of the folder 'TEST' in the local repository? If you would like to 'rename' the content of the folder in the same local repository from 'TEST' folder to 'TEST1' folder and you can achieve it by right click on the folder 'TEST' in the local repo, click on 'move' and check the 'Move to a Custom Path', change the path from 'TEST' to 'TEST1' and move the content, in this way you can change the folder name. However, AFAIK you cannot change the folder name in the virtual repository. Virtual repos are just a combination of all the repositories inside it.
A virtual Repository is a collection of remote, local and other virtual repositories. read here
The local repo is a pointer in the virtual repo and all changes must be done outside of the virtual repository.
i.e. if you rename the folder in local repository. It will automatically change in the virtual repo created by you but not inside the virtual repository.
Short answer is you cannot. What a virtual repository does is essentially aggregate paths (and for those paths that conflict, it will pick the latest timestampped artifact for you).
So let's say I have local-repo-one/test/myartifact
This is sued by everyone under virtual-repo/test/myartifact
Now there is another team, and they want to download using virtual-repo/newteam/myartifact. What you can do is either copy the artifact to this new path, move it, or copy the artifact to a new local repo under that path. Then add that local the virtual and you'll be able to resolve for newteam/myartifact as at least one repo has this.
What's nice about copying in this scenario is that it uses no extra storage at all. Because of checksum based storage, things are dedupped, so no concerns on that end.
There are also User Plugins that can be used to redirect a request, or even a re-write rule in your reverse proxy.

Where to put the live-search-docs config file in all in one alfresco project?

I have been going through some blog posts that tell how to customize the live search . What is not clear to me is where should I place the live-search-docs.get.config.xml file in my all-in-one-share project so that it is bootstrapped and deployed in the correct location.
Please can some one advise where the file should be placed in my all-in-one alfresco project?
From the link below
https://www.bluefishgroup.com/insights/ecm/adding-metadata-fields-to-simple-search-and-live-search-with-alfresco-5/
they suggest the search query customization file to be placed under
These files can now be modified to add additional metadata fields as
needed. Once the files have been updated, they should be deployed to
the ‘extensions’ directory so that they will override the out of the
box configuration. If you are deploying your code as a custom AMP
file, the files should target the following directory:
tomcat/webapps/alfresco/WEB-INF/classes/alfresco/extension/templates/webscripts/org/alfresco/slingshot/search
if my file needs to end up in the above path in my WAR, where exactly should I place the search file in my all-in-one alfresco project so that its deployed to the above folder? I would like this to be bootstrapped with my all in one project. I tried putting the file under src/main/resources/alfresco/site-webscripts with the remaining path for the file but that did not work.
Thanks
The easiest way is to create a copy of that file in:
my-all-in-one-project-platform-jar/src/main/resources/alfresco/extension/templates/webscripts/org/alfresco/slingshot/search/
where, of course, my-all-in-one-project-platform-jar must be substituted with the name that you have specified when the project was created with the all-in-one archetype.
The file in the extension subpath will override the corresponding OOTB files.
See Web scripts

Xcode 4 project template adds extra folder

When I make a new project with xc4 I don't want it to create a folder with the same name as the project. I want the source files associated with a project template to get copied into several other folders that sit next to the project.
In the TemplateInfo.plist, I can specify which files to copy through the Definitions and Nodes arrays. In the Definitions, if I make the name ../Example.cpp then it will copy the file into the directory with the project rather than into the folder that has the project's name, which is what I want. But, if i delete that empty folder then xcode can no longer find any files because all files had to be specified relative to the auto-created folder.
Does anyone know how to get around this? Is there some way to specify which folder project files should be relative to? Or perhaps some other way to specify relative paths for files in a project template?

How to add a directory tree to a ClearCase repository?

I have a directory tree with sub-directories, and I want to add it to a ClearCase repository. Currently I need to rename the directory, use CC's mkdir, and so forth for every dir. Is there a way to do this automatically (maybe a ClearCase command I don't know about, or a script)?
I would recommend using clearfsimport.
See:
"How can I use ClearCase to “add to source control …” recursively?".
"Creating a new subdirectory structure in ClearCase?"
What is nice with this script is that is will:
checkout the parent directories,
make the necessary mkdir for adding new directories
do the mkelem for adding new elements.
Clearteam Explorer has a recursive add to source control, at least for web views - AFAIK

Resources