Most voted "directory" questions
A directory or folder is a virtual container within a digital file system, in which groups of computer files and other directories can be saved and organized. related tags that may be more suitable in some situations: [file], [folder], [sub-directory], [directory-structure], [working-directory], [directory-listing], [directory-permissions]
Learn more…106 questions
Sort by count of
-
1
votes1
answer1611
viewsHow to organize a C++ project into folder structure in Visual Studio
I would like to separate my source code into folders to have a better organization in the code by grouping the files into directories. In general, you usually have a lot of files . h and . cpp and I…
-
1
votes1
answer55
viewsAccept any Annex format
I have an application where you can insert attachments and then download them. But I did it in a way that with every file format I want to insert as an attachment, I enter a For Each in this way…
-
1
votes2
answers117
viewsTransfer all files from a directory
I have an application that transferred files via socket, but one at a time. I need this application to transfer an entire directory. I must provide a directory, EX: "c: users PASTA_DOWNLOAD Server"…
-
1
votes1
answer781
viewsHow to get the default temporary operating system directory in PHP?
In PHP, there is some way [or some function that has the purpose] to get the directory where temporary files are saved in a given operating system? I know the function tempnam generates a temporary…
-
1
votes2
answers987
viewsHow do I count the number of files in a folder with PHP?
In PHP, what is the fastest and most efficient way to read the amount of files present in a given directory. For example, I want the demo below to return 3. pasta/ index.php dev.php .htaccess…
-
1
votes2
answers1362
viewsAccess denied. (code: 5) PHP
I am using the code below to try to read the files in a directory. $dir = "\\\\192.168.44.19\Controles\Inventario de Equipamentos\A\ " ; $pasta= opendir($dir); echo("<li…
-
1
votes1
answer2060
viewsGrab the application folder
I have an application with all interfaces and features. In the same project I put a simple code running on console to check if there is already a database created on the machine. If not, he must…
-
1
votes2
answers72
viewsError opening network link
Good Afternoon, I am using the code below to open a folder over the network: $dir = "\\\SR9\Infraestrutura\Controles\Termos\A\\" ; $pasta = opendir($dir); echo "<ul data-role='listview'…
-
1
votes1
answer179
viewsMove subfolders with python
Some time ago I was trying to create a script Python to move subdirectories from one folder to another for example: root ├── pasta1 │ ├── pastaa │ └── pastab ├── pasta2 └── pasta3 ├── pastac └──…
-
1
votes1
answer69
viewsreceive the size of a folder in textview
I’m an Android development intern, as a challenge I need to create an App to receive/discover the size of the folder/ directory of images Whatsapp... I researched and I couldn’t find anything, I saw…
-
1
votes0
answers92
viewsDeleting images with PHP
I’m working on a personal cloud for my girlfriend because her iCloud is full. Basically this is what’s making it all work: <?php $dirname = "uploads/"; $images =…
-
1
votes0
answers51
viewsFile directory
Hello, I am making a program in java in which I need to open a file and read it. However when I am trying to put the file path, it does not find such file and so I get Null Pointer Exception error.…
-
1
votes1
answer427
viewsList web file folder
I’m trying to list a folder of files, I’m not getting, the error says that the directoryinfo does not support URL. DirectoryInfo directoryinfo = new DirectoryInfo("http://127.0.0.1");…
-
1
votes2
answers1666
viewsManipulate all images from a directory without having to access
The Script below, is in charge of showing a sequence of images at a certain amount rate (one), so it is necessary to define a number of images. Check out: Code <html> <body>…
-
1
votes1
answer72
viewsCreation of Recursive Folders
The Problem: I wonder if there is a more practical way than using the control structures IF/ELSE for creation of folders recursively, based on the inputs that the user typed. Context: For example,…
-
1
votes2
answers217
views -
1
votes1
answer526
viewsCreating directories in Python
I have a list of directories to be created that has this structure : Bla / Bla / Bla1.md Bla / Bla / Bla2.md Blu / Blue.md Ble.md But the archives .md should not be created, but the folders…
-
1
votes2
answers293
viewsAccentuation in the directory
I have a directory location problem when it involves an accentuated file or folder. Follow the section below where I try to capture the file size: $filepath = "$novocaminho".utf8_encode($arquivo);…
php filing-cabinet directory accentuation zend-framework-2asked 7 years, 5 months ago Jonathan de Toni 1,260 -
1
votes1
answer127
viewsListing directories "Client" with PHP - Error when directory name has accent
Good morning. I’ve been trying for at least two days to find a solution to the problem I’m facing. I’m still a beginner in php and that’s why so much difficulty... Well, here’s the problem: I want…
-
1
votes1
answer3104
viewsPython string corrupted with character
I have a program that creates for your running another program on the user’s computer. In a snippet, I define the directory to which the new program will be intended as diret = "C:\\Users\\" +…
-
1
votes1
answer37
viewsI cannot delete the "cloned" folder with Case-Sensitive in my Github repository
I created a repository on Github and sent my application containing an X folder with the full name in lower case, when actually the first letter of the name should be uppercase. To solve this…
-
0
votes3
answers1168
viewsPHP as per path and filename in variables
Hello. I have a table that should show the name of the files and the date they were updated, but nothing appears. In HTML I have only <table><?php tabela("/arquivos/formularios/*.*");…
-
0
votes2
answers767
viewsHow to create a subdirectory tree with an Array
I have a way: C:\Users\Default\AppData\Local I want a function that takes a path equal to the top path and Return an Array: Output: array(5) { [0]=> string(30) "C:\Users\Default\AppData\Local"…
-
0
votes0
answers50
viewsSlideshow in directory
The project is a slideshow, it should go through a specific directory where an image file is found jpg, this file will have the name of TEMP_IMAGE1.jpg, and when opened will be presented to the user…
-
0
votes0
answers60
viewsfile_exists, just not: test error with false TRUE
This is not exactly a direct question, but it might be interesting since there is another discussion here about file_exists vs is_file. I, like many programmers, define variables to find myself in…
-
0
votes1
answer124
viewsPHP recursive directory
I need to include a file from a recursive directory, I’m using the following form: <?php require_once '../../cabecalho.php'; ?> Okay, here’s what’s going on. The header, which would be the…
-
0
votes1
answer92
viewsMVC structure on remote server
I have the following directory structure in localhost: -config -hsapp |--Controllers |--Models |--Views -public |--Assets |--Index.php -vendor composer.json You notice it’s an MVC structure. I…
-
0
votes1
answer345
viewsHow to remove folders from a directory
I have a project in Delphi 2010 in which I use to compress and create backups Winrar, through the following code I can compress the following folder teste3: AFile := 'C:\teste1\teste2\teste3';…
-
0
votes1
answer25
viewsGet the path of a file within the project in string form
I am using a method that in its parameters I inform a path of an image, Example: Meu_Metodo("image\\test.png"); Only that image is inside Resources, as you can see in this image: What I do to get…
-
0
votes2
answers7124
viewsHow to get the directory from the location where a . py file is running?
I have a file. py of setup, so every time it runs I need to know the directory from where it is running, how can I do this?
-
0
votes1
answer517
viewsPython import file from variable
If I set a variable as the directory from which I will import a file, such as: a = 'C:\\Users\\Windows 7\\Desktop\\Program10.py If I try from a import foo, me is given Modulenotfounderror: No module…
-
0
votes0
answers50
viewsImage problems using include
I am developing a website and after developing most of the files, I decided to organize them in their respective folders. localhost/hostname/ -- root directory localhost/hostname/includes/ --…
-
0
votes1
answer42
viewsInclude jQuery outside the Root directory
I have the following directories: Dev libs jquery.js Projects (Root) index.html In my index.html, I am trying to use jquery as follows: <script src="../libs/jquery.js"></script> However,…
-
0
votes0
answers29
viewsPython: Get folder URL
How to get the path/location of the latest image stored in an x folder using Python?
-
0
votes1
answer7196
viewsModulenotfounderror: No module named 'authorizations'
How can I import a folder using Python in Spyder ? Currently I have the following structure of dir Gestao | |_ Aplicacao | |_ Autorizacoes In the script import pandas as pd import imaplib import…
-
0
votes1
answer42
viewsDirectory of scripts not recognized
I’m mounting a wordpress site on MAMP installed in windows and scripts . JS put so on footer: <?php wp_footer(); ?> <script src="https://code.jquery.com/jquery-3.2.1.min.js"…
-
0
votes0
answers27
viewsAdministrative panel modifying/changing svg contents
I was imagining a page structure like this, but I do not know if it is possible to execute and wanted to know the paths and possibilities. In a div would have mysql table data and a svg. The objects…
-
0
votes1
answer202
viewsProblem to list directories with java
I’m trying to list all the files in the C: directory on my PC. Smaller directories with 11 thousand files is picking up normally, it takes a while, but it’s no problem. The problem is when I will…
-
0
votes1
answer68
viewsProblem with Accessdeniedexception
I am trying to go through all the files in the C: directory of my computer. Before I was using the IO library, but it was giving some problems and now I’m using the NIO, With the NIO is going well,…
-
0
votes2
answers589
viewsHow to list only the name of existing folders in a given directory
How can I list only the name of a folder that is inside a root folder? Example: Pasta raiz C:/Downloads SubPastas: Teste/ Teste 2 In my DLL I can list the folders but with its full path, I would…
-
0
votes1
answer281
viewsSelect files from a directory by name
I have the following code snippet that searches for files in the directory : <?php session_start(); include("../conexao.php"); if(isset($_SESSION['MSLogin']) and isset($_SESSION['MSSenha']) ){}…
-
0
votes2
answers25
viewsListing files from a directory that start with a given text
I am working on the development of a page in html/PHP in which the goal is to perform the search for information on certain processes. For each process covered by the search filter the page displays…
-
0
votes0
answers89
viewsSlim Framework does not recognize the saved sessions
Guys, my directory in the slim framework was default.. /public /vendor /src /cache /app among other folders.. and within the /public A index.php was calling the other files and folder normally..…
-
0
votes0
answers51
viewsDuplicate bootstrap files in Adm folder or just reschedule paths?
I developed a website, now I need to create a "ADM" to control it. These are the files from the main website: I created a folder called adm in the same directory as the other files and thought to…
-
0
votes2
answers78
viewsCheck if directory 'B' is inside directory 'A'
I am developing a script that checks the last access date of each file within every tree of a chosen directory. Files over X days without access will be moved to another directory. As a precaution,…
-
0
votes1
answer85
viewsis_dir() function does not work as expected
Greetings! I am developing a file system to read the files of a given directory and return the value in JSON. However, I intend to separate in this JSON if the item is a file ("type":"file") or a…
-
0
votes1
answer197
viewsProblems with html directory on google sites
How to put HTML image from any PC folder? Google Sites has the option to embed snippets of html code on their site, usually (as far as I know) css and js are embedded in separate files, but google…
-
0
votes1
answer328
viewsProgram . created jar does not run!
I made the following program in java to automatically swap a file in a computer directory: public static void main(String[] args) throws IOException { if (!new…
-
0
votes1
answer875
viewsList directories and PHP files
Hello, I have a PHP code that works well for what was proposed, but I need some adjustments to it. The code in question already lists the directories and the files, but in directories that I have…
-
-1
votes1
answer641
viewsHow to delete directories containing subdirectories and files on an FTP server in Delphi?
I am for some time trying to make my application made in Delphi 2010 remove a directory on an FTP server, I used Tidftp for such a task with the command "Remove", but the process fails, because…