Transferring image storage between firebase projects - firebase

I am trying to transfer 2 folders from an old project into a new project, I have used this command in the past to pass between projects:
gsutil cp -r gs://oldProjectAPIURL/{folder name} gs://newProjectURL
But I am not sure if it will overwrite the existing folders, since they have the same name, how can you import these folders without overwriting the existing folders, assuming they have the same names?

A folder is an artificial construct on Google Cloud Storage. In reality it has a flat list of files, and interprets / in the path as a directory separator in the SDKs.
That also allows us to answer your question: if you write files to an existing directory, they will be merged with the existing files in there, as on the flat list of files these are unique names that just happen to have the same prefix.

Related

folders in ibm watson studio

I am using project lib in ibm watson studio to store and save files created in a jupyter notebook(mainly csv and pkl files). The thing is that I need to store these files in different folders in my project. I could not find the way to do this properly.
def my_append_data(source_data, file_name): #source data is a Pandas Dataframe
project.save_data(file_name,source_data.to_csv(),set_project_asset=True,overwrite=True)#save csv file
return 0
this is the function that i am using(for csv files) but the files are stored in the project library without any folder specification, is there any way to create folders inside the project using project lib?
There are no folders in Projects on Watson Studio. You cannot create files in folders on Object Storage using project-lib.
The project-lib documentation states that explicitly:
The project-lib functions can’t be used to access folder assets (files on a path in Cloud Object Storage).

Watch new files in a directory with Qt

In my case files permanently are being added into the directory. I need to read names of the files which have the most recently been added into the directory, that is only new files. I'm tracking the directory using QFileSystemWatcher class. But how after that can I choose only new files with entryList or another command?
I'm able to define a special name format based on a creation time and select the necessary ones afterwards or I could differ files from each other by their modification time directly and try to use some embedded filters.
But the first way is too slow and I couldn't find the appropriate filter in Qt documentation for QDir class.

Incremental build VSTS for files changed only (Wordpress)

I have a build and release pipeline for Wordpress php files, but I only want to create a build for the files changed in source control. I am not using a Visual Studio Build task as this does not apply in case of php files I guess.
Here is how the pipeline is configured:
Currently under the build I am using publish artifacts only from $(Build.SourcesDirectory) and under the release pipeline I am copying those artifacts to the website using FTP upload.
Since the amount of files is larger than 10K,
I want it to only build files that have changed and publish those
instead of the whole directory again.
How do I achieve that within the build as the release will automatically pick files up based on the artifacts.
There isn’t the feature in VSTS that can just pick files up based on the previous artifacts.
You can refer to these ways to achieve it:
Create XML file that stores the last upload/publish information of each files (e.g. file name, date time, changeset/commit version).
Create a PowerShell script file that included the logical to compare files (get files metadata and compare with that XML file) and copy updated files to specific folder
Publish the files in that folder

Does the .hgignore file work if commiting the folders that should not be pushed to the repo?

I've read a bunch of tutorials on this .hgignore topic but still haven't figured out it yet.
In my Asp.Net Mvc 3 app I have "bin" and "obj" directories that I don't want to push to the repository. I put .hgingore text file into my local repository folder (where there is also .hg folder).
syntax: regexp
/bin$
/obj$
also tried this:
syntax: glob
*obj
*bin
I've read somewhere that if you commit the folders (bin, obj in my case) the .hgignore file doesn't work.
Could it be the case and if so, how could I not commit these folders?
Thanks in advance!
Yes, .hgignore affects only adding new, unversioned files (and folders) and do nothing with objects already in Mercurial
You can post-exclude hgignored patterns from versioning by using hg forget
If you want exclude folders and all content of folders, not only root, your pattern isn't in best form
syntax: regexp
/bin/**
/obj/**

What folders are commonly used by version control systems?

I need to know what folder names are commonly used by Version Control systems. Many VCSs will create a hidden folder, usually in the top level of the source tree, to store the information that they use.
So far, I only know that Git uses .git/ and SVN uses .svn/.
What are the folder names that other popular VCSs use?
We could probably divide the VCSs into three groups:
Special Subdirectory in each directory
CVS
Subversion (.svn)
The advantage of this is that each directory in the working copy is a self-contained working copy: you can copy it out somewhere else and it will still work. The obvious disadvantage is the clutter. Using automatic tools to scan over one of these working copies need special filtering or they will return spurious results.
Single special directory for each working copy
Mercurial (.hg)
SVK
(Maybe Git, I'm not sure?)
Special file system support
ClearCase (dynamic view is a mounted FS; snapshot view is more similar to the single directory case)
Mercurial = a single .hg directory

Resources