INTERACT FORUM

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1]   Go Down

Author Topic: Removing Empty Directories  (Read 2696 times)

nymaestro

  • Recent member
  • *
  • Posts: 19
Removing Empty Directories
« on: September 06, 2005, 10:19:46 pm »

MC11 politely asks me if I want to remove empty directories after a rename operation.  I always answer "yes", but MC never actually removes them.

Is this a bug??
Logged

Alex B

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 10121
  • The Cosmic Bird
Re: Removing Empty Directories
« Reply #1 on: September 07, 2005, 02:52:34 am »

It works for me.

Perhaps the folders are not completely empty. Have you used Windows Media Player? It makes a bunch of hidden image files into the folders. Set the options in Windows Explorer to show the hidden files too and check the folders.

Limited user rights or some other application locking the folders are some other possibilities.
Logged
The Cosmic Bird - a triple merger of galaxies: http://eso.org/public/news/eso0755

Bill Kearney

  • Regular Member
  • Galactic Citizen
  • ****
  • Posts: 373
Re: Removing Empty Directories
« Reply #2 on: September 07, 2005, 05:17:33 am »

It makes a bunch of hidden image files into the folders. Set the options in Windows Explorer to show the hidden files too and check the folders.

Then shouldn't MC not ask about deleting the folder?  If the folder's not truly 'empty' then it shouldn't be asking about deleting it.  And I'm sure plenty of folks would consider there being hidden files as NOT empty.  Perhaps MC should have some sort of option for handling folders with nothing but hidden files? 
Logged

KingSparta

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 20062
Re: Removing Empty Directories
« Reply #3 on: September 07, 2005, 05:21:23 am »

yes this is a bug

I have a program on my web site you can use under the button "Programs I Have Created"

it will scan the drive and then show you the folders it found are empty and then click on the checkbox list the ones you wish to delete and press delete.

if you use it let me know if it installs correctly. it is a visual basic install in a zip file, so it should work.
Logged
Retired Military, Airborne, Air Assault, And Flight Wings.
Model Trains, Internet, Ham Radio, Music
https://MyAAGrapevines.com
https://centercitybbs.com
Fayetteville, NC, USA

Alex B

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 10121
  • The Cosmic Bird
Re: Removing Empty Directories
« Reply #4 on: September 07, 2005, 06:08:30 am »

I guess MC cannot see the hidden files because it uses the OS commands and Explorer for file handling.

The thing is that the hidden files should not be there in the first place. I would consider it as an MS bug. It is stupid to make hidden files into the user folders. Also Windows Explorer leaves the WMP made hidden files behind when the other files are moved.

MS tries to make things easier by doing tricks under the hood, but in this way the users will become more and more ignorant about how the system really works.
Logged
The Cosmic Bird - a triple merger of galaxies: http://eso.org/public/news/eso0755

Alex B

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 10121
  • The Cosmic Bird
Re: Removing Empty Directories
« Reply #5 on: September 07, 2005, 07:15:49 am »

Sorry Alex, but in many instances there are no hidden files involved, I have checked this as I have often encountered this problem (and NEVER used WMP). It is a long-standing MC 'bug'.

Well, that was an answer to Bill's and King's comments.

The other options I mentioned in my first post are likely reasons in case the folders are empty.

As I said, it works for me. Just yesterday evening I ripped about ten CDs into artist\album subfolders in my rip folder. I tagged the music files and the separately scanned album images. After that I used the Rename Files From Properties tool for moving the files to the final location. MC removed correctly the empty artist\album subfolders. I have some other stuff in the rip folder so MC didn't delete the base folder.
Logged
The Cosmic Bird - a triple merger of galaxies: http://eso.org/public/news/eso0755

GHammer

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 1930
  • Stereotypes are a real timesaver!
Re: Removing Empty Directories
« Reply #6 on: September 07, 2005, 07:43:05 am »

I guess MC cannot see the hidden files because it uses the OS commands and Explorer for file handling.

The thing is that the hidden files should not be there in the first place. I would consider it as an MS bug. It is stupid to make hidden files into the user folders. Also Windows Explorer leaves the WMP made hidden files behind when the other files are moved.

MS tries to make things easier by doing tricks under the hood, but in this way the users will become more and more ignorant about how the system really works.

But, I like having different folders for different types of files. And, having the cover art there but hidden (because I'm looking for music) is a good thing.

As for what has a bug and what is working properly, I'd guess that the music folders work as intended. I have other tools that are 'aware' of hidden files/folders and offer to take care of them for you if you are performing file ops. If MC is going to do things for you, then it should.
Logged

KingSparta

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 20062
Re: Removing Empty Directories
« Reply #7 on: September 07, 2005, 07:50:11 am »

The folders i refer to have no hidden files, art, they are just plan empty.

I sat there all day once trying to figure out why this happens.

I don't have an answer, but it does happen.
Logged
Retired Military, Airborne, Air Assault, And Flight Wings.
Model Trains, Internet, Ham Radio, Music
https://MyAAGrapevines.com
https://centercitybbs.com
Fayetteville, NC, USA

Alex B

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 10121
  • The Cosmic Bird
Re: Removing Empty Directories
« Reply #8 on: September 07, 2005, 08:17:42 am »

I should have tested the behavior first. I tested it now and it seems that MC behaves corretly when the folders contain hidden files. It does not offer to delete apparently empty folders if there are hidden files.

MC offers to delete the empty folders if there are no hidden files and deletes the folders correctly on my PC.
Logged
The Cosmic Bird - a triple merger of galaxies: http://eso.org/public/news/eso0755

Alex B

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 10121
  • The Cosmic Bird
Re: Removing Empty Directories
« Reply #9 on: September 07, 2005, 08:34:37 am »

The folders i refer to have no hidden files, art, they are just plan empty.

I sat there all day once trying to figure out why this happens.

I don't have an answer, but it does happen.

Could it be the Windows Indexing Service? I always disable it, but it is on by default on XP. Perhaps the hidden Indexing Service process is still working on the changes when MC tries to delete the folders. Though, adding delay or a second check would not be good performance-wise.

Some other possibilities are virus scanners and/or tooltip info tools with shell extensions that monitor folders and files. It is possible that other applications are checking the folders at the instant when MC tries to delete the folders.
Logged
The Cosmic Bird - a triple merger of galaxies: http://eso.org/public/news/eso0755

nymaestro

  • Recent member
  • *
  • Posts: 19
Re: Removing Empty Directories
« Reply #10 on: September 07, 2005, 08:47:26 am »

No hidden files
No indexing
No WMP

It is a bug.

J River, any word on when it will be fixed?
Logged
Pages: [1]   Go Up