aMule Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're back! (IN POG FORM)

Author Topic: CVS: Share File Window  (Read 3057 times)

HyperNode

  • Guest
CVS: Share File Window
« on: June 28, 2007, 12:17:04 PM »

Well, a helpful feature would be complete user directory listing under current shared path. Showing all files even if the file is in multiple times under different location. Also better way to individually mark which file is on share and which is not being shared other then to use the full recursive path.
Logged

wuischke

  • Developer
  • Hero Member
  • *****
  • Karma: 183
  • Offline Offline
  • Posts: 4292
Re: CVS: Share File Window
« Reply #1 on: June 28, 2007, 04:30:52 PM »

OK, once again, because I don't really get it.

You want:
- to display directories and files in the dialog to select the directories to share?
- and ability to share only some files in a folder?

If that's what you want, I doubt you'll get it. ;) The latter is too complicated and the first seems not very clear (in terms of usability) to me.
Logged

HyperNode

  • Guest
Re: CVS: Share File Window
« Reply #2 on: June 28, 2007, 04:45:13 PM »

LOL sorry if I was not clear. I have way of making thing more complicated than it already is. All I was saying was for example when you select a directory using recursive anything inside is shared. Now on SHARE FILE windows dialog you should be able to see the parent and child tree along with all given objects in this case files in the directory.

So lets say you select the dir ./aMule/share/*.* now inside ../share it has no child dir's but has files which in sense is being shared on SHARED FILE window. But the problem is all files inside is being shared now if i want to unshare a file it should be able to extract that from list and not share it but same times display it.

This is not actually very hard to do makes alot easy to unshare and unshare a file inside a folder other alternative is delete it or unrecursive the whole dir. Now /.aMule does have sharedir but only the DIR now they should keep a total list of all files and shared or unshared for example:

/aMule/share/file1
/aMule/share/file2
/aMule/share/file3

now this is showing the total absolute path of the file that is in so if it changes it will rehash it as normal but all you have to add is for example 0 and 1 in this case 0 is DO NOT SHARE and 1 is SHARE FILE.

So it would look something like this:
/aMule/share/file1, 1 < sharing the file
/aMule/share/file2, 1 < sharing the file
/aMule/share/file3, 0 < not sharing the file

Now this will all show up on SHARE FILE window where for example you can use color and make the file that is not share inactive so user can see it.
Logged

wuischke

  • Developer
  • Hero Member
  • *****
  • Karma: 183
  • Offline Offline
  • Posts: 4292
Re: CVS: Share File Window
« Reply #3 on: June 28, 2007, 05:18:07 PM »

Well, currently you share a directory and all files inside this directory. This is a very simple and works very well.

You can put 5 files or 5000 files inside and there's no difference.

If you share on a per-file base, than it is a difference - and a big one. Also it gets nearly impossible for the user to manually edit the shares.dat file.
Logged

HyperNode

  • Guest
Re: CVS: Share File Window
« Reply #4 on: June 28, 2007, 05:43:03 PM »

I never said anything about manully adding it this would be synchronized and show up on windows share folder which will display all files but one ACTIVE as those share = 1 and those not shared as inactive as = 0. User does not even have to do anything they will select the folder and all files will be listened then for example they click UNSHARE and it will be taken out this is not rocket science.
Logged

wuischke

  • Developer
  • Hero Member
  • *****
  • Karma: 183
  • Offline Offline
  • Posts: 4292
Re: CVS: Share File Window
« Reply #5 on: June 28, 2007, 05:59:32 PM »

You know about amuled, the amule deamon, don't you?

You have to edit the file manually when you use amuled and it would be nearly impossible when it is flooded with a lots of entries.

What I can think about is something like a blacklist to choose files which you don't want to share.
Logged

HyperNode

  • Guest
Re: CVS: Share File Window
« Reply #6 on: June 28, 2007, 06:06:17 PM »

In sense it would be like blacklisting it which will unshare it. But there has to be a productive way of using for example known hash and changing its value when you unshare which won't flood it but use the existing hash table on known files.
Logged