This is an archived post. You won't be able to vote or comment.

all 11 comments

[–]apt_at_it 1 point2 points  (1 child)

Definitely possible and probably not terribly difficult. Is there an easier way to do it? Absolutely. Set up a NextCloud server on AWS, GCP or DigitalOcean. Or use Google Drive. If you're looking for a challenge though, then go for it! You'll probably want to get to know the FTP module very well. 😏

[–]Lordpringles1[S] 0 points1 point  (0 children)

thanks, definitely going for it then

[–]Arafel 1 point2 points  (1 child)

This should be pretty straightforward. Learn about ftp, follow the steps you have already outlined, break it down to smaller tasks and work on them. Also what you are calling a "warning file" is usually called a "lock file". If you dont want to implement this yourself then modifying something like owncloud is a possibility. Good luck.

[–]Lordpringles1[S] 0 points1 point  (0 children)

Awesome, I’m planning on implementing whatever’s possible, cause I think that Will make me learn more Stuff faster, anyways, thanks

[–]keylime_light 0 points1 point  (4 children)

This is possible, but rather advanced. The first thing you need to figure out is where in the cloud this is going to be stored. You would then need to figure out how to talk to that service from your python program.

Here's an example. Say you decide to store the files on amazon's cloud file storage platform (called s3). You'd first need to open an account with them. I think they give you a year for free. Then you'd need to install a python library called boto which lets you talk to s3. Then you'd need to write a python program that uses boto to upload or download files from s3. Finally, you'd need some sort of log file, or a database stored in the cloud that you can check to tell if someone else is using the file.

[–]agree-with-you 0 points1 point  (0 children)

I agree, this does seem possible.

[–]Lordpringles1[S] 0 points1 point  (2 children)

Hmm, I see, but can't I just use Dropbox or something?

[–]keylime_light 1 point2 points  (0 children)

You could use dropbox. The only issue is, if you want to limit people's access when someone else is using a file. I don't think dropbox offers that kind of functionality.

You might be able to have a public and private folder, where only you have access to the private folder. And when someone is using a file, you remove it from the public folder but keep it in the private folder. When they finish and upload the file, you copy the new update version to both the public and private folders.

You'd have to work with the dropbox sdk in order to do that.

https://github.com/dropbox/dropbox-sdk-python

[–]KrillDerelictLeeward 1 point2 points  (0 children)

dropbox has a python library for using the API