upload hidden files and directories

Jasmin shahrzad
Jasmin shahrzad used Ask the Experts™
on
i upload a folder to nextcloud on ubuntu (lxd)(just drop folder in webpage) all file is uploaded except for .files (hiden file).
How to upload hiden file where is it to accept which file extension is ok to upload. (i want to accept all type files).
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
David FavorFractional CTO
Distinguished Expert 2018

Commented:
File uploading is file uploading. Nothing secret/special about this.

You'll use scp or rsync or sftp to just copy files.

Generally rsync -av will be fastest, most robust approach, as rsync ensures least amount of work + data flow possible.

What files are accepted for upload (no clue what you might mean by this) is determined by how you're doing your uploads.

I suppose... if you're doing some sort of WebDAV or HTTPS PUT upload code, then file acceptance will be determined by the custom code you wrote.

Using common tools rsync/scp/sftp there is no concept of acceptable/unacceptable files, as all files are... just bits... uploaded with no consideration of what bits are contained in what files. Also there is no concept of file extensions (MIME processing) with these common tools.

Sounds like you're using some very odd type of upload process, which will require you describe your upload process for better assistance.

Or... just use rsync + all will be well...
Software Engineer
Distinguished Expert 2018
Commented:
@david: Nextcloud is NOT scp/ftp accessible. Data is handled through WebDAV.

Hidden files are not seen by your local browser file handler.

If i copy files from Dolphin dropping them into the Nextcloud folder All files that are visible are copied.
(And non empty directories), empty directories are skipped.

So If hidden files are not shown they are NOT copied.
If hidden files are shown then they are Copied.
Empty directories are missing.

If i drop the copy a 2nd time all already in Nextcloud existing  directories give an error
Generally rsync -av will be fastest, most robust approach, as rsync ensures least amount of work + data flow possible.
That's only true if some data has already been copied.  If you're starting from scratch and have a lot of data, cpio will be up to 10% faster for the initial copy.  If you have lots of little files, it also helps to have multiple simultaneous rsync or cpio running at the same time, so you can have something in the other cpu thread pipeline while waiting for the filesystem to enumerate the file handle.  If you have changing files, you can start with multiple cpio and complete with a final rsync of each copy and a final rsync and it will still be faster.  10% faster may not mean much for small data sizes, but it can be substantial in multi-TB, multi-day copies.

Author

Commented:
we do not choose to install client version and sync. what we need to is drop sync people forget to sync or they work offline or out of domain.
and forget to sync and,....
What we do is  upload file and work direct in web site.

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial