SSIS File System Task: Destination directory files deleted when using move directory option - ssis

I tried to copy folder from a source directory to destination directory in SSIS. However, it deleted all files from destination directory.
Some of the deleted files from given destination directory were found in recycle bin, others are not even in recycle bin or PC. I changed destination directory and all files from that directory were also deleted. Why did this happen and where can I find deleted files?

Related

Hg: copy file without saving history (copy as new file)

I am making copy of existing files in a folder (selecting them in Pycharm, copying and pasting to another folder).
Also I tried to make a copy of files in Mac OS terminal
cp -R source_folder destination_folder
In both cases TortoiseHG show that the file has been copied from its source. How to make a copy of files without saving the history? I need the file to be created as a new one
It's possible if I manually create a new file and copying the content of source file to the new one. But it's much more complex way if you have plenty of files to copy
Seems like I found the solution. I guess that copying from Pycharm executes hg copy command (that was mentioned in other questions).
Copying from terminal is ok, but I forgot to forget previously copied files. I clicked with right button on filename in TortoiseHG and chosen forget option. Then copied from terminal window as I made before
cp -R source_folder destination_folder
And thats it

.hgignore files inside folder but not the folder

How can I ignore the files inside the folder but keeping the folder in mercurial?
I tried in this way but also folder is ignored.
syntax: glob
photos/*.jpg
photos/*.gif
photos/thumbs/*.jpg
photos/thumbs/*.gif
Thanks
Create an empty file named .keep in the folder and add it to your repository.
touch photos/.keep
hg add photos/.keep
This way the folder will be still tracked, even if its contents and the folder itself are in .hgignore.

Google script to copy one folder to another

We have a folder in a team drive that we need to copy to another folder in team drive. So when any changes happen in the 'master' folder it updates the slave folder. We are doing this so that if anything is accidentally deleted in the slave folder we wont lose anything. Can this be done?

How to clone only public_html into folder on server?

I've version-controlled my entire project on my local machine, and now I essentially want to use Mercurial to upload all my files to my server and keep it up to date.
I have a public_html folder which is a subfolder of the project root. I only want to clone that folder into a specific folder with a different name on my server (it's called htdocs on the server, and can't be renamed).
Is this possible? How?
Yeah, you can't clone only a portion of a repository. If you want only public_html it needs to be its own repository.

How to branch the whole repository including ignore files

I have a project, which is in the Mercurial repository. In the root folder there is a .hgignore file, which states, that the "Bin" folder should be ignored (and also some other files and folders).
Now I want to clone this repository but in a way, that ALL folders and files should be cloned, also the original ignored ones. If I just clone the repository, than I get only the files, which are included in the repository thus my bin folder is missing.
How can I get cloned repository with all files in it? I want to merge these two repositories together in a while...
PS - I am working on a legacy application which has a lot of external dll-s in the bin folder of the application. I know I should put them to a seperate folder, but that's another story.
Just copy it.
Copy the whole tree from point a to point b, and the new copy will function perfectly as a repository. The only thing that would be different from a clone is the lack of hardlinks and that the default pull/push path will be set-up to be the same as the original, rather than pointing to the original. That's easy to change by editing .hg/hgrc if you want to.
An ignored file is not in your repository, so it will not be cloned. You should copy these files by hand after you have cloned the repository.
When you copy those files, I think it won't be a problem if you overwrite other files that are in your repository (they're essentially the same files after all), so as long as you don't copy the .hg folder in the root of your checkout, you'll probably be fine.