deleting directory in Bitrix CMS - content-management-system

How to delete directory from site structure in bitrix?
I found how to delete one file, but what about directory?

it is very easy but not obviously:
in left sidebar go to Files and Folders and find the absolute path of you folder here.
So in this menu you can delete whole folder with all or not content.

Related

Move files into a folder in GitHub (At their website)

I would like to move files and (if possible) folders into another folder, at a Git repository (trough the GitHub website - so not using the terminal).
Is this possible? if so, how?
A solution is described in the GitHub docs here.
You browse to the file you want to move, click on Edit this file and change the path to your desired path.
You might have to experiment around but the following might be helpful:
This will show you how to move/rename files. You can change the folder path: https://github.blog/2013-03-15-moving-and-renaming-files-on-github/
This here will show you how to create a folder: https://github.community/t/add-a-folder/2304
Renaming a folder will be difficult. How many files are in this folder? You essentially move a file. It's a bloody pain.
I'll adjust this with additional tips.

.gitignore not ignoring a folder within a directory

It seems a straightforward one, but having researched multiple ways to do it, I can't gitignore a folder within a directory.
I have a root directory which contains all of my code in it. Because it has some back-end NodeJS stuff in it, it has a 'node_modules' folder which contains hundreds of files. As a result, when I try to upload the entire parent folder, GitHub says there's too many files to upload and tells me to reduce the number I'm uploading.
The crucial part is though, the folder has to be uploaded as a whole, as it itself is within a GitHub repository with other files with different folders in.
That means when I go onto my repository, I need this folder's files to display within the folder, and not separately within the repository. I need all of the files to be within this folder, within the parent repository, excluding the node_modules folder.
For example ->
Parent repository -> Child Directory (what I'm uploading) -> Individual files
I've tried to add the node_modules folder to my gitignore through the following methods:
Adding: node_modules/ to my gitignore file
Writing: echo node_modules >> .gitignore through my terminal
Adding a separate gitignore file within my node_modules file with a * in it
None of them have worked and I can't find any other solutions. For reference I'm using a Mac.
Does anyone have any idea what I'm doing wrong, or how it'd be best to do it?
By default, you do not need to include the node_modules folder in your repositories because the package.json file contains all of your project's dependency information. This means that anyone who clones your repository can run npm install and have the entire node_modules folder without problems.
To solve this you can create your own .gitignore file, creating a new file at the root of your project and renaming it to .gitignore (writing exactly that way). Then you can open it with any text editor and add */node_modules to one of the lines.
This will likely solve your problem.

How can I delete/remove a top level folder from vscode Explorer

In VS.Code explorer, I have a directory being listed that I don't want. It points to an old branch.
Right-click menu does not have a remove/delete option and the del key does nothing for folders evidently.
How can I remove this folder from explorer?
You just can't This Folder is the root of the project u choose
Select the top-level folder.
File -> Close Folder
That will not delete the folder from disk, but it will remove it from vscode explorer.

In Github, is it possible to delete a folder without having to delete each file manually, using the site, not the command line?

I want to delete the entire folder, not every individual file as it could get tedious. I know how to delete files from a folder and make the folder disappear after everyone is deleted.

Install4j "Copy files and directories" installer action does not copy the file directory path

I do a backup of the files that need to be replaced as part of the installation. For this I use the above action. However, it just copies the files in the child directory to the destination directory but not the directory hierarchy of the source to the destination directory. Example: I have a some files in this directory structure \dir1\dir2\dir3\files. It copies only the files under dir3 but not the \dir1\dir2\dir3. I need to preserve the directory structure in the backup. Can anyone help with this please?
I am using Windows 7 Enterprise.
Thanks very much.
You have to select the root directory in the action, i.e. the one containing "dir1". Then, it will copy the whole directory tree to the destination.
If you want to copy only parts of the directory tree, use the "Directory filter" and "File filter" properties.