Open source means the source code is available for inspection and modification, but “free” can refer to price (gratis) or freedom (libre). Many open-source projects are completely free of charge and legally safe. Nextcloud, ownCloud, FileGator, and Tiny File Manager are all excellent free open-source options.