Questions tagged [directory-browsing]

38 questions
36
votes
5 answers

Is There A Way To glob() Only Files?

I know that glob can look for all files or only all directories inside a folder : echo "All files:\n"; $all = glob("/*"); var_dump($all); echo "Only directories\n"; $dirs = glob("/*", GLOB_ONLYDIR); var_dump($dirs); But I didn't found something to…
Alain Tiemblo
  • 32,952
  • 14
  • 114
  • 147
18
votes
4 answers

How to enable Directory browsing by default on IIS Express

Cassini (Visual Studio development web server) by default enables directory browsing, how can I enable directory browsing on IIS Express by default? (I don't want to have a separate configuration for each project I have?
Ahmed Magdy
  • 5,256
  • 8
  • 36
  • 74
10
votes
3 answers

Absolute path without symlink resolution / Keep user in home directory

Is there a way in PHP how to determine an absolute path given a relative path without actually resolving symlinks? Something like the realpath function but without symlink resolution. Or alternatively, is there some easy way to check whether user…
NumberFour
  • 3,233
  • 7
  • 44
  • 68
9
votes
1 answer

Where does Docker store the content of running containers?

Is there a way to browse the files that were created within a running container? Say I'm starting a container using sudo docker run --name myContainer -d ubuntu Which has the ID eefea5f7df52e8c1aad24b4068564237021dc7b953026f0adb696878a3d25f72 I…
Edward
  • 3,883
  • 7
  • 32
  • 76
8
votes
4 answers

list partitions in nodejs

I would like to get the list of partitions in windows, using nodejs. fs.readdir works fine for any folder below or including C:, but I cant figure out what to give it to have the list of partitions like "C:", "D:" and so on. Anyone know what I…
user1703467
  • 83
  • 1
  • 4
4
votes
1 answer

Limiting HttpModule to only process certain requests

We use directory browsing on a specific section of our website, but our users don't really like the default ASP.NET directory browsing. To be honest, we don't particularly care for it either. I came across mvolo's custom directory browsing module…
Jeremy
  • 139
  • 1
  • 2
  • 10
3
votes
3 answers

IIS browse directory problem on a virtual directory

I have two differents virtual directories mapping to the same directory on the OS. In one of this virtual directories I need to have the browse folders disable, and in the other one I need to have it enable. The problem is that when I changed one of…
user335518
  • 111
  • 1
  • 4
  • 8
2
votes
1 answer

How do you change or hide the server name from directory browsing in IIS

I am hosting a virtual directory behind a reverse proxy, and I'm enabling directory browsing on that virtual directory. At the top of the directory browsing page it lists the server name and then the path to the folder from that domain. Because this…
TJ Rockefeller
  • 1,723
  • 13
  • 23
2
votes
2 answers

browsing to a file on button click in asp.net

I want to browse to folder on button click and select a file in that folder. When user selects a particular file. I want to retrieve the folder path and size of that file ? How can i do that in asp.net with c# BTW i'm using vs2008. Please help…
Sree
  • 6,255
  • 19
  • 64
  • 104
2
votes
1 answer

ASP.net MVC Directory Browsing

Im adding the ability to upload images to my ASP.net mvc application. Basically the user selects an image and I upload it to an Images folder which i've created in my solution folder structure. This works great and the image uploads to the images…
Matt
  • 3,125
  • 11
  • 39
  • 90
2
votes
4 answers

Assembly code support in source insight

Has anybody tried browsing assembly language file (filename.s) in source insight? I just added whole Linux kernel project into source insight but it does not support any of the assembly files.
San
  • 867
  • 3
  • 13
  • 32
2
votes
1 answer

How to run jFileChooser in console-application? Is it possible?

I tried to do this with this piece of code: JFileChooser chooser = new JFileChooser(); int retval = JFileChooser.CANCEL_OPTION; chooser.setFileSelectionMode( JFileChooser.DIRECTORIES_ONLY); retval = chooser.showDialog(null, "Select"); But it…
tytan
  • 305
  • 1
  • 3
  • 11
1
vote
1 answer

How to browse android gallery for movie/media files in SDK

Can anybody tell me how to browse for a movie file from the android folders (either phone/SD Card memory). Let's say I got a movie file on the phone memory and I want to access it from my application, what is the best way to do it? Please help me.
Anil Arrabole
  • 3,628
  • 5
  • 31
  • 51
1
vote
1 answer

Jenkins cucumber not serving static files

our jenkins can serve this: http://jenkins:8000/view/all/job/my-cucumber/273/cucumber-living-documentation/ but returns a http 404 when trying to switch styles and effectively calling…
megasega
  • 17
  • 2
1
vote
1 answer

IIS Directory Browsing won't show file contents

I set up two different computers the same way, as far as I can tell (each with it's own physical folder on the local hard drive), using the IIS UI. Both computers successfully display the list of files (some XML files) in its folder when browsed to.…
Knom
  • 190
  • 1
  • 9
1
2 3