Most voted "file-system" questions
A file system is a way of organizing data on a computer system. Typically, a file system is composed of files, folders (usually a special type of file) and an API that can be used to interact with files.
Learn more…79 questions
Sort by count of
-
44
votes4
answers3861
viewsWhat are the risks of using permission 777?
Always when I have folder permissions problem on my Ubuntu operating system, I usually give permission 777 for a particular folder. I usually do this in the development environment. In some…
-
25
votes3
answers9925
viewsDifference between './', '.. /' and '/'
In some codes I work, sometimes there is no global variable that points to the root of the project, such as: $RAIZ='PATH/EXAMPLE/'; So they often use: src='./somePath'; src='../somePath';…
-
14
votes1
answer152
viewsIs there any difference in performance between writing a file as a response and writing to a file as a part (buffer)?
I have a t2.micro instance on Amazon where I use IIS 10 as server and webforms in the application (C#). In a certain part of the application, I need to grab a list of image files from a certain…
-
13
votes3
answers2326
viewsProblem accessing an accented file (matching character)
I’m trying to list a folder (files, subfolders) in Python [2.7 on Windows XP], and I’m having problems with sharp files. I know the method os.listdir behaves differently if the argument is a single…
-
13
votes2
answers9163
viewsHow to force files of type . txt to be downloaded
I have a page, but I don’t want you to click on files like . txt to download instead of displaying them. I am developing this page in PHP. I saw some scripts on the web, but it is forcing the…
-
11
votes1
answer1892
viewsCheck whether a path is relative or absolute
I wonder if there is a Java function that checks whether the string is a relative path or not: Ex: String caminho = funcao("\\pasta\\arquivo.xml") // retorna true que é um caminho relativo String…
-
10
votes4
answers1358
viewsConceptual database and file backup strategy
This is a conceptual question that fits into two on-topic themes of Software architecture and engineering. Concepts and practice and database question involving SQL on server. As this type of…
-
7
votes1
answer2762
viewsWhy in file and folder names, are some characters still not accepted?
Why files and folders still do not accept some different characters? I believe you must have some programmatic influence in order to make that decision. The Operating Systems had and/or still have…
-
6
votes2
answers12917
viewsWhat is the difference between a symbolic link and a hard link?
In the Unix context, what is the difference between a symbolic link (soft link) and a hard link and which commands are used to create them?
-
6
votes2
answers89
viewsBackslashes on the way: do they influence anything?
I never understood why some systems use the \ and others use the / for the same purpose: to divide paths and addresses. There is no pattern from which to use, or at least couldn’t find a. While…
characteristic-language operating-system file-system pathasked 5 years, 2 months ago CypherPotato 9,292 -
5
votes1
answer155
viewsOptimized approach of checking if there is a certain entry in Windows hosts file
I have a Java web application with Applets that access services on the web. These services are accessed through a specific hostname (example: services.webapp.com.br) configured in the application.…
-
5
votes1
answer9094
viewsHow to read folder and subfolder files?
I have a function to read the files in the folder, and it’s not working. I need a functional function that reads files from folders and subfolders. Follows the code: FolderBrowserDialog fbd = new…
-
5
votes2
answers3824
viewsWhat is the best way to save files, Bank or File System?
I have a demand to attach Pdfs to my application. The files have varying sizes, from 5 to 200 MB or more. Here comes my question: what is the best option to store? Direct in the database…
-
5
votes1
answer81
viewsHow to transfer a file with corrupted name?
A client of mine is having a problem to upload file on my system, and from what I could notice it is his file that is with corrupted name (it is relatively common, on Windows systems, the accented…
-
5
votes1
answer137
viewsHow do temporary folders work?
I was wondering about that today. In both Unix and Windows operating systems, we have a specific location where temporary files of all kinds are played. It is obvious to think that if the folder is…
-
4
votes1
answer2848
viewsHow to Convert UTF String to ANSI and Create ANSI Text File on an SSD?
I wrote an Android application using Java, so that users answer questions, which are then saved in a file. The problem is that this file is saved in UTF8. The end user will open this file on IBM…
java android character-encoding file-systemasked 10 years, 9 months ago Please_Dont_Bully_Me_SO_Lords 516 -
4
votes1
answer77
viewsSense/NET: Installation and programmatic configuration
I am currently working on solutions that require the storage of files uploaded by users, associated with these files and making them available to other users and common maintenance tasks (clean-up,…
-
4
votes2
answers1320
viewsSave user and password without database use
I am developing an application in C# of the kind Console, and I’m looking to save some sensitive settings like user, password and IP. The problem is, how to safely store this data locally without…
-
4
votes1
answer964
viewsHow to create a Java directory using NIO.2 - Java SE 7
The API java. is part of the Java SE platform since its version 1.4. Now, from Java 7, we have several new Enhancements in this API and new features, which provide better management of the file…
-
4
votes3
answers1923
viewsHow to fetch a file in all folders
How to create an application that does a full search in a folder or disk looking for a file who in the image I’ve tried to use Directory.GetFiles and Directory.GetDirectory But when it gets to a…
-
4
votes1
answer386
viewsRecover Volume Name of Netmapped Disk Drive
I’m using DriveInfo.GetDrivers() to take the names of the disk drives present on the machine and list them on a TreeView. I made the code below that works, however it does not appear the names of…
-
4
votes2
answers3669
viewsDecoding of file in Python
I have a file that is completely written like this after my Crawler also written in Python has saved the data in it: b'N\xc3\xa3o n\xc3\xa3o n\xc3\xa3o, n\xc3\xb3s iremos sim!' I wonder if there is…
-
4
votes1
answer717
viewsHow to disable file mode (permission) in GIT?
I’m working with the GIT here at the company where I work, along with two more programmers. Every time I make one git pull, whose changes were sent by these two programmers, I always have trouble…
-
4
votes2
answers163
viewsFile.Exists and the accentuation
I have a system developed in Webforms (Eca!) that checks the existence of an image to then display it. Everything is working correctly, however, when the image path has accents, the method…
-
3
votes0
answers124
viewsWhy do file names usually not carry special characters?
It is common for file names to follow patterns such as nome-imagem.jpeg (in lowercase and separated by hyphens). This practice is adopted by convention or because of compatibility with web servers?…
-
3
votes1
answer1172
viewsWhat are file descriptors and directories?
I’m studying the módulo os of the standard library of Python and I realize that in many cases a function is allowed to receive as a parameter a descritor de arquivo ou diretório some examples are:…
-
2
votes1
answer121
viewsFile per folder limit - Django 1.7
Does Django 1.7 provide any upload control mechanism per folder? I say this because when the number of files in a folder gets too large it tends to get slower. An example would be: Every 800 files…
-
2
votes1
answer789
viewsHow to remove and rename directories in C language?
To create a directory I used the mkdir(const char*) function and to remove I tried to use remove(const char*),as below: void remove_diretorio() { char nome_pasta[10]; printf("Informe o nome da…
-
2
votes2
answers73
viewsCreate folder on every console usage
I took a program ready on the internet to create folder, so I tried to adapt it for me but I’m not getting. I’d like every time I executed it, to create a subfolder inside the main under a different…
-
2
votes1
answer196
viewsIs it possible to open the file for writing and at the same time open for reading without before closing in C?
Not a good programming practice? void leitura(FILE *arq) { if((arq = fopen("dificuldade.txt","r")) == NULL) printf("Erro ao abrir o arquivo\n"); else { //linhas de codigo fclose(arq); } } void…
-
2
votes4
answers620
viewsHow to delete files and folders recursively safely with Python?
Guys, I’m trying to create a script to delete my files and folders in a safe way, just like it does the shred, srm, etc...but I would like to do this with Python script. I was able to find a…
-
2
votes1
answer133
viewsHow to remove part of the name of all files in a folder via CMD/Powershell
I need to standardize the name of all the files in a folder, considering that the files already have a pattern at the beginning of their name up to the 8th character, being only necessary to demote…
-
2
votes1
answer301
viewsChange Laravel directory /directory 8
I’m in trouble, using LARAVEL 8 and Voyager installed. When logging in via SSH on my shared server I am in "public", its going down a level I go to "meusite.com.br" here upei all the files and…
-
1
votes1
answer890
viewsRead Word file without losing formatting
How to read a Word file without losing formatting the same? Status: Client wants to upload a Word file and we store all this within the database as text (for future searches and similar). Note:…
-
1
votes1
answer307
viewsAdd attributes in file creation
I am developing a Java application that creates files in the user directory. So while creating the files I needed to add some attributes in their properties, so that I can identify from where…
-
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
votes1
answer585
viewsThe chmod command does not work as expected when using MINGW32
The command chmod does not work as expected when using the MINGW32 on Windows. I tested only on Windows 10 64 bits. $ cat ~/bin/minha-shell echo "Esta é minha shell" ls -lat /c/ $ chmod 777…
-
1
votes2
answers1063
viewsGrab image inside Storage folder
I’m uploading images to the folder storage, app/public, inside this created a folder /banners and I’m uploading these images into this folder. How can I take these images and display in the view?…
-
1
votes1
answer31
viewsHow do I check if a $_FILE has been set?
all right? I’m trying to run this code: if(empty($_FILES['imagem']['name'])){ $upload = new Upload(); $novoNome = $upload->efetuarUpload($_FILES["imagem"]);…
-
1
votes1
answer766
viewsHow to delete all files and subfolders from a directory?
I have a file storage site, and with time it moves inactive files to a folder: www.site.com/files/_deleted/, when it moves the files it creates a subfolder for each of them... It has how I run a…
-
1
votes2
answers681
viewsHow to record a txt file with each patient’s name?
I’m developing a college project which is a clinic system where the receptionist makes the patient’s registration and other more options. I’m trying to get the employee to register a new patient,…
-
1
votes3
answers993
viewsList files in a folder containing a specific word in the name
I’m developing a system in Joomla! and I need to provide specific files for each user (holerite). I have already managed through the session to know which user is logged in. In the Joomla! , I added…
-
1
votes0
answers1022
viewsFile Download with Laravel 5.3
I need to make PDF files available for download. I don’t know if I’m at least on the right track, but I’m having an error that indicates the file doesn’t exist. My controller is as follows: public…
-
1
votes1
answer44
viewsVerifying existence of shortcut
I need to verify the existence of a shortcut on the desktop of the computer, but the code below does not leave the if (!File.Exists(pasta)) private void Instalando() { string pasta =…
-
1
votes0
answers161
viewsWhich is the most correct way to store files
I always run into this question when I have to work with file storage inside a software. It is ideal that I simply record them in any folder and record the information in the database, with a field…
-
1
votes2
answers540
viewsWhere to store profile images that the user uploaded?
I have a JAVA application that needs to store profile images that the user sent. //no meu LOCALHOST eu uso esse caminho e funciona perfeitamente: File arquivo = novo…
-
1
votes1
answer42
viewsAzure Application Service Permission Bug
I have an application service on Azure running wordpress. One day, while updating a plugin, this not only stopped working as the panel Kudu cannot visualize it. Observe: I can list inside the folder…
wordpress windows-azure file-system azure-app-service file-permissionasked 6 years ago Andre Mesquita 1,114 -
0
votes0
answers94
viewsRecursiveness of folders and files stored in the Database - PHP
I have a system using Cakephp, in one of the pages there is the possibility to register folders and recursive files, which are saved in the database. Now, I need to query these folders and files…
-
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
votes2
answers381
viewsFile permission on Linux
Hello, my question is not exactly about programming issues, but about Linux and its file access permissions. Recently, I had to change the permissions of two system files into directories that…