directory-listing Questions

3

How can I print a list of all the files in a given directory using Fortran, limiting only to specific file types... For instance I only want to get the list of '.txt' files from a directory. Files ...
Lawyer asked 28/11, 2012 at 9:37

3

Solved

On my website I have an /upload dir. And I don't want people to see a list of the content in the dir (the files in it can still be viewed) - so to me the following error message is not an error. I...
Glockenspiel asked 19/1, 2017 at 13:12

33

Solved

I'm trying to get a list of the names of all the files present in a directory using Node.js. I want output that is an array of filenames. How can I do this?
Taneka asked 28/4, 2010 at 6:10

8

Solved

There is a directory that is being served over the net which I'm interested in monitoring. Its contents are various versions of software that I'm using and I'd like to write a script that I could r...
Indehiscent asked 21/12, 2010 at 4:4

13

Solved

I'm trying to get the contents of a directory using shell script. My script is: for entry in `ls $search_dir`; do echo $entry done where $search_dir is a relative path. However, $search_dir co...
Undeviating asked 13/3, 2010 at 6:3

5

Solved

I'm trying to get (not print, that's easy) the list of files in a directory and its sub directories. I've tried: def folder = "C:\\DevEnv\\Projects\\Generic"; def baseDir = new File(folder); file...
Kalliekallista asked 17/10, 2010 at 15:48

14

Solved

I am trying to get a list of files in a directory using Python, but I do not want a list of ALL the files. What I essentially want is the ability to do something like the following but using Pytho...
Absinthism asked 8/2, 2010 at 23:2

2

Solved

I need to exclude all files and folders from a certain directories while doing the recursion. I have this code so far : $it = new RecursiveIteratorIterator(new RecursiveDirectoryIterator($website...
Parthia asked 17/9, 2012 at 6:30

14

Solved

I often use python to process directories of data. Recently, I have noticed that the default order of the lists has changed to something almost nonsensical. For example, if I am in a current direct...
Osteopath asked 27/1, 2011 at 5:30

8

Solved

I had some directory, with large number of files. Every time I tried to access the list of files within it, I was not able to do that or there was significant delay. I was trying to use ls command ...
Stivers asked 21/5, 2011 at 16:31

4

I've activated directory listing with this line in the .htaccess: Options +Indexes How can I limit this to only one IP address with having access to all files/directories for everyone (every IP)...
Aribold asked 9/8, 2011 at 16:27

4

Solved

I have this code and it displays the folder with the directory itself and not its contents. I want to display its contents. I don't want to use boost::filesystem. How can I resolve this? Code: ...
Petitionary asked 31/12, 2016 at 1:42

2

Solved

In my web application all the .aspx pages resides in Pages directory. The project structure is shown below: The Home.aspx is set as Start Page and the Web.config file of the Pages folder contain...
Monetary asked 21/3, 2012 at 14:19

8

Solved

I need a list of directory in LUA Suppose I have a directory path as "C:\Program Files" I need a list of all the folders in that particular path and how to search any particular folder in...
Dehydrogenase asked 14/3, 2011 at 19:5

2

Solved

I'd like to get a list of filenames that will later be stored into an array. The following code just displays directory listing in the same way Apache listing is displayed in a browser, e. g. 1234....
Choke asked 8/9, 2016 at 10:47

3

Solved

I use an MVC folder structure where the URL routes happen to match the directory names, eg.: <proj>\My\Cool\Thing\ThingController.cs Needs to be accessible by this url: http://blahblah/My...
Redfaced asked 18/2, 2014 at 0:44

13

Solved

How do I get a list of the folders that exist in a certain directory with ruby? Dir.entries() looks close but I don't know how to limit to folders only.
Labelle asked 14/12, 2009 at 5:26

1

Solved

I've noticed some behavior in PowerShell that I can't explain, but I'm hoping that someone else can. If I want to build a list of file objects from drive C:\, and I want to ignore shortcut folders...
Elver asked 13/12, 2017 at 21:1

2

Solved

I am trying to adjust NameWidth while using HTMLTable but without success. Consider these settings (# = comment): <IfModule mod_autoindex.c> IndexOptions FancyIndexing IndexOptions HTMLTa...

7

Solved

How to List Directory Contents with FTP in C# ? I am using below code to List Directory Contents with FTP it is returning result in XML format ,but i want only the name of directory not the whole ...
Mcreynolds asked 21/7, 2010 at 11:58

2

Solved

I am trying to get a list of strings with the file path and the file name. At the moment I only get the file names into the list. Code: hamFileNames = os.listdir("train_data\ham") Outpu...
Hesta asked 2/11, 2017 at 0:56

3

In my case, I needed to call a powershell script from a c or c++ code source, found few links which were pretty clumsy and not good with c++, I simply want a roadmap if its possible invoking a powe...
Lamphere asked 28/4, 2017 at 10:43

7

Well here is my code but I just can not filter the listing using the objFile.Extension i am sure it is some thing silly Set objFSO = CreateObject("Scripting.FileSystemObject") objStartFolder = "C:...
Graiae asked 16/11, 2010 at 23:16

5

Solved

How do we achieve a recursive directory listing in DOS? I'm looking for a command or a script in DOS which can give me the recursive directory listing similar to ls -R command in Unix.
Greenhaw asked 4/3, 2010 at 4:3

1

Im working on a simple WPF application that has the sole purpose of using Renci SSH.net library to get the working directory of a SshClient and further passing it to a SftpClient. I cant seem to c...
Chromite asked 19/7, 2015 at 13:27

© 2022 - 2024 — McMap. All rights reserved.