Author Topic: folderlock working?  (Read 6506 times)

_if_

  • Guru
  • ****
  • Posts: 248
    • View Profile
folderlock working?
« on: September 04, 2011, 11:32:29 am »
Hi guys,

I remember somebody mentioning that creating a file named 'foldername'.folderlock would prevent the system to check this folder for new media. I can't get that to work, is that feature currently working?

thanks
IF

Marie.O

  • Administrator
  • LinuxMCE God
  • *****
  • Posts: 3676
  • Wastes Life On LinuxMCE Since 2007
    • View Profile
    • My Home
Re: folderlock working?
« Reply #1 on: September 04, 2011, 11:47:18 am »
I have a folder called transfer and a file called transfer.folderlock in my video folder. I copy stuff into transfer, and it never gets cataloged. After the copy process completes, I move it up into video, and it does get cataloged.

_if_

  • Guru
  • ****
  • Posts: 248
    • View Profile
Re: folderlock working?
« Reply #2 on: September 04, 2011, 01:05:59 pm »
ok thanks posde,

thats exactly the way I tried it. maybe it just takes some time for the system to remove the data from database again...

greetz
IF

Marie.O

  • Administrator
  • LinuxMCE God
  • *****
  • Posts: 3676
  • Wastes Life On LinuxMCE Since 2007
    • View Profile
    • My Home
Re: folderlock working?
« Reply #3 on: September 04, 2011, 01:37:21 pm »
No, it does not REMOVE the data from the database, it will just not ADD stuff to the database from those folderlocked directories.

_if_

  • Guru
  • ****
  • Posts: 248
    • View Profile
Re: folderlock working?
« Reply #4 on: September 04, 2011, 01:50:37 pm »
ok, so if I had the folder before with content in it and that was added to the database already and now I create a folderlockfile, the stuff will stay in database until I remove it manually?

purps

  • NEEDS to work for LinuxMCE
  • ***
  • Posts: 1402
  • If it ain't broke, tweak it
    • View Profile
Re: folderlock working?
« Reply #5 on: September 04, 2011, 02:27:34 pm »
My understanding was that it didn't matter what order you do these things in.

If you have stuff in a folderlocked folder, it won't show up. You might have to wait for a while, maybe reload/reboot and wait some more, yes.

Cheers,
Matt.
1004 RC :: looking good :: upgraded 01/04/2013
my setup :: http://wiki.linuxmce.org/index.php/User:Purps

_if_

  • Guru
  • ****
  • Posts: 248
    • View Profile
Re: folderlock working?
« Reply #6 on: September 04, 2011, 02:52:17 pm »
alright, thanks guys!

Marie.O

  • Administrator
  • LinuxMCE God
  • *****
  • Posts: 3676
  • Wastes Life On LinuxMCE Since 2007
    • View Profile
    • My Home
Re: folderlock working?
« Reply #7 on: September 04, 2011, 04:31:09 pm »
ok, so if I had the folder before with content in it and that was added to the database already and now I create a folderlockfile, the stuff will stay in database until I remove it manually?

Yes, that is my understanding.

merkur2k

  • Addicted
  • *
  • Posts: 513
    • View Profile
Re: folderlock working?
« Reply #8 on: September 04, 2011, 06:50:44 pm »
folderlocks simply prevent UpdateMedia from crawling into that folder. if it has already done so in the past, then whatever media it found will still be available even after application of a folderlock.

purps

  • NEEDS to work for LinuxMCE
  • ***
  • Posts: 1402
  • If it ain't broke, tweak it
    • View Profile
Re: folderlock working?
« Reply #9 on: September 04, 2011, 11:20:31 pm »
Well I have learnt something today. I stand corrected; sorry about that _if_.

How does he remove the media?
1004 RC :: looking good :: upgraded 01/04/2013
my setup :: http://wiki.linuxmce.org/index.php/User:Purps

_if_

  • Guru
  • ****
  • Posts: 248
    • View Profile
Re: folderlock working?
« Reply #10 on: September 05, 2011, 12:23:00 am »
hey,

I just moved that folder to my desktop station and the media did not show up anymore in the database after some time and a reload. Then I moved back the folder to the core and now it's showing up again even the folderlock file is still there.

My folder is in public and is called "exchange" and the folderlockfile is called "exchange.folderlock" and it is in public as well (not in exchange).
Is that alright this way?

thanks
IF

daci92

  • Veteran
  • ***
  • Posts: 65
    • View Profile
Re: folderlock working?
« Reply #11 on: September 05, 2011, 08:43:14 am »
hey,

I just moved that folder to my desktop station and the media did not show up anymore in the database after some time and a reload. Then I moved back the folder to the core and now it's showing up again even the folderlock file is still there.

My folder is in public and is called "exchange" and the folderlockfile is called "exchange.folderlock" and it is in public as well (not in exchange).
Is that alright this way?

thanks
IF
That wont do the thing u have the files in the database so if u take out the media and move it to some folder that is not used by MCE structure that media wont be shown ,but if u take it back in the folder where it belongs then it will be shown again no matter if the folder is locked ,without root permissions and stuff .The only solution is to go into the webadmin and remove it from the database which is annoying and hard because all your files will be there and u have to select them

_if_

  • Guru
  • ****
  • Posts: 248
    • View Profile
Re: folderlock working?
« Reply #12 on: September 05, 2011, 10:29:58 am »
ah I got it, thank you daci!