Page 1 of 3 123 LastLast
Results 1 to 10 of 22

Thread: How to disable creating .directory files?

  1. #1

    Default How to disable creating .directory files?

    I'm using openSUSE 11.4 (x86_64) with KDE: 4.6.00 (4.6.0) "release 6"

    Everytime I visit a direcotory, a hidden file ".directory" is created. How to disable that? Is There a possibility to disable that behaviour only for public_html directory?

    Thanks for any help.

  2. #2
    Join Date
    Jun 2008
    Location
    Earth - Denmark
    Posts
    10,730

    Default Re: How to disable creating .directory files?

    On 05/30/2011 09:36 AM, michalsrodek wrote:
    >
    > I'm using openSUSE 11.4 (x86_64) with KDE: 4.6.00 (4.6.0) "release 6"
    >
    > Everytime I visit a direcotory, a hidden file ".directory" is created..


    welcome new forum poster!

    how are you "visiting" a directory? that is, what tool or program are
    you using to 'visit'?

    and, who are you (a user, or root) when you "visit".

    where is this "public_html directory"? is it on your local machine or
    are you accessing a distant server via some tool/program?

    this doesn't sound like an openSUSE problem..

    --
    dd CAVEAT: http://is.gd/bpoMD
    [NNTP via openSUSE 11.4 [2.6.37.6-0.5] + KDE 4.6.0 + Thunderbird 3.1.10]
    Dual booting with Sluggish Loser7 on Acer Aspire One D255

  3. #3
    Join Date
    Jun 2008
    Location
    West Yorkshire, UK
    Posts
    3,611

    Default Re: How to disable creating .directory files?

    All directories have a hidden file .directory - in some ways like the .. you see in Windows. If you uncheck View Hidden files, you won't see them.

  4. #4
    Join Date
    Feb 2010
    Location
    Germany
    Posts
    4,654

    Default Re: How to disable creating .directory files?

    john hudson wrote:

    >
    > All directories have a hidden file .directory

    Sorry, that is simply not true. It is a file created by the file browser
    which contains information on howto view the folder in which you are.
    This file does not exist in folders which you never opened with for example
    konqueror or dolphin (I do not know what nautilus does).

    --
    PC: oS 11.3 64 bit | Intel Core2 Quad Q8300@2.50GHz | KDE 4.6.3 | GeForce
    9600 GT | 4GB Ram
    Eee PC 1201n: oS 11.4 64 bit | Intel Atom 330@1.60GHz | KDE 4.6.0 | nVidia
    ION | 3GB Ram

  5. #5
    Join Date
    Jun 2008
    Location
    Netherlands
    Posts
    29,812

    Default Re: How to disable creating .directory files?

    Quote Originally Posted by john_hudson View Post
    All directories have a hidden file .directory - in some ways like the .. you see in Windows. If you uncheck View Hidden files, you won't see them.
    Thta's a good explanation, but I doubt it is what the OP is after. He may, or may not, understand what they a re for, but he simply wants them not to be created, at least in a specific directory called public_html. (Please @michalsrodek, can you confirm my diagnoses?).

    AFAIK in KDE these files are created by Dolphin (at least I find one:
    Code:
    henk@boven:~> cat .directory
    [Dolphin]
    AdditionalInfo=63
    Timestamp=2010,3,1,10,21,10
    ViewMode=1
    henk@boven:~>
    Thus looking hrough Dolphin configuration possibilities might reveal something. But them being an integrated part of the Desktop I doubt you can prevent their creation. OTOH deleting them does not much harm IMHO..

    Not using Dolphin on public_html might not be a real solution to the OP. But the OP could elaborate a bit on why he thinks these small files are a nuisance.
    Henk van Velden

  6. #6

    Default Re: How to disable creating .directory files?

    @hcvv: your diagnoses is right. I create a zip package from time to time and .directory files are inside.

    I wrote a small script for clean up but it's not a handy solution

    #!/bin/sh
    rm -rvf `find . -type f -name .directory`

    I'm using Dolphin. My public_html is located in my home directory: /home/michal/public_html

    Thanks for answers! I'll try to check Dolphin configuration.

  7. #7
    Join Date
    Jun 2008
    Location
    Netherlands
    Posts
    29,812

    Default Re: How to disable creating .directory files?

    You are not obliged to answer all the questions we ask in turn, but when we have to help you as good as possible with your problem, I think we should know what your real problem is. As asked above: what is it you have against this file being there? It will be in every directory that you visit with Dolphin (or Konqueror) and everybody using these file managers have them in ost of their directories without ever complaining. What is your rproblem? When we know that we might be able to atack the real problem instead of what you think might be your solution to that real problem.
    Henk van Velden

  8. #8
    Join Date
    Feb 2009
    Location
    Spain
    Posts
    25,547

    Default Re: How to disable creating .directory files?

    On 2011-05-30 11:06, hcvv wrote:
    > Not using Dolphin on -public_html- might not be a real solution to the
    > OP. But the OP could elaborate a bit on why he thinks these small files
    > are a nuisance.


    The public_html directory is exported by apache, so visitors can see it,
    and its contents. Dunno about hidden directories. Perhaps adding the
    appropiate access file in that directory would block apache from serving it.

    --
    Cheers / Saludos,

    Carlos E. R.
    (from 11.2 x86_64 "Emerald" at Telcontar)

  9. #9
    Join Date
    Jun 2008
    Location
    Podunk
    Posts
    32,339
    Blog Entries
    15

    Default Re: How to disable creating .directory files?

    Quote Originally Posted by michalsrodek
    @hcvv: your diagnoses is right. I create a zip package from time to time
    and .directory files are inside.

    I wrote a small script for clean up but it's not a handy solution

    #!/bin/sh
    rm -rvf `find . -type f -name .directory`

    I'm using Dolphin. My public_html is located in my home directory:
    /home/michal/public_html

    Thanks for answers! I'll try to check Dolphin configuration.

    Hi
    You say you are using zip? If so run from the command line and exclude
    the .directory file with the -x option?

    --
    Cheers Malcolm °¿° (Linux Counter #276890)
    openSUSE 11.4 (x86_64) Kernel 2.6.37.6-0.5-desktop
    up 4 days 18:58, 3 users, load average: 0.08, 0.07, 0.05
    GPU GeForce 8600 GTS Silent - Driver Version: 270.41.19


  10. #10
    Join Date
    Jun 2008
    Location
    Netherlands
    Posts
    29,812

    Default Re: How to disable creating .directory files?

    The public_html directory is exported by apache, so visitors can see it,
    and its contents. Dunno about hidden directories. Perhaps adding the
    appropiate access file in that directory would block apache from serving it.
    I hope Apache does not do something like that by default

    In any case when you do not have Directory Listing on, Apache will not show that it exists. Which will not prevent a browser user from asking for it in an URL, but why should she/he do that? And What to learn from it?

    And of course, when you have certain files within an Apache served part of the tree, you do not want to serve, you better configure Apache not to do so.

    But all is speculation as the OP did not state that this directory is subject to Apache serving.
    Henk van Velden

Page 1 of 3 123 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •