As of May 31, 2023, we have updated our Code of Conduct.

Questions tagged [directory]

A directory or folder is a container within a digital file system, in which groups of computer files and other directories can be kept and organized.

Filter by
Sorted by
Tagged with
0 votes
0 answers
3 views

Ansible playbook to verify directory and retrieve server hostname or IP if not empty

I want to check a directory with ansible if it's not empty. I want to have the server hostname or IP address if the directory is not empty. Can anyone help me? Thanks! I tried this but it doesn't ...
Tahina Ramahazomanana's user avatar
0 votes
1 answer
25 views

Getting the length of files present in a particular directory in FLUTTER 3.10 [duplicate]

In my project, I want to get the number of files in a directory when a button is pressed or tapped. This functionality seems to work in a dart standalone code but when called in the ontap function it ...
Stephen Essoun's user avatar
0 votes
0 answers
21 views

How to rename all files and folders in a directory

I'm using windows 10 and i want to rename all files and folders in specific directory by using batch file. For example my directory is located at "D:\Test" In the directory there are folders:...
Vahid Eisapour's user avatar
0 votes
0 answers
9 views

missing folder from next.js folder structure using create-next-app

I have created next.js basic app using "npx create-next-app appname" command. But many of the folders are missing from the folder structure. For example (api, styles, pages) all these ...
Jayita Deb's user avatar
0 votes
0 answers
5 views

how to link google drive folder to google CDN bucket folder?

its seems that google devs are very primitive. there is no way to do so. also, I cannot upload any file OR folder from google drive to the bucket. also, I cannot upload files OR folder from my android ...
mr.tee's user avatar
  • 39
0 votes
1 answer
37 views

how to extract zip files into a folder with batch script

i have zip files and am trying to unzip them with powershell.exe -Command "& {Expand-Archive -Path zip_file_path -DestinationPath destination_folder_path}". for some zip folders it is ...
Satya Pamidi's user avatar
0 votes
1 answer
62 views

Creating folders based on part of a filename

I have a bunch of audiobooks in one folder on macOS. The file naming structure is Author - Title.m4b (e.g. JRR Tolkien - Lord of the Rings.m4b). I would like to run a bash script and then have the ...
thimplicity's user avatar
0 votes
1 answer
23 views

How can I link my CSS file to all PHP/HTML files in different folders with a complex directory structure?

CSS and PHP Pathing. So, i just want to link my CSS to all my PHP/HTML files, but i have a few folders including one containing two folders, containing PHPs. Heres the structure. localhost └── HC (...
Aban's user avatar
  • 11
-2 votes
0 answers
10 views

Can anyone identify this old game with a tropical world, vehicles, and armed groups? [closed]

I'm looking for a game, the game takes place in a tropical world, you collect various things, you can drive a cutter car and a helicopter, there are also armed groups, although you are not involved in ...
Avtandili Makhatadze's user avatar
0 votes
1 answer
36 views

How to assign column values based on file path and name

If the File.Name column of clin.info matches an idat file in the idat folder, I want to assign it to a new column Basename and populate it as path/idat/clin.info$File.Name. for(file in paste0(getwd(), ...
melolili's user avatar
  • 1,009
0 votes
0 answers
7 views

Module not found: Error: Package path . is not exported from package. Requests of the current directory need to start with './'

Here is the code for Home page in the components folder import React, { useEffect } from 'react' import styled from 'styled-components' import ImageSlider from './ImageSlider' import Viewers from './...
Bipradeep's user avatar
0 votes
2 answers
25 views

Why does my batch code give a syntax error for a folder name with space in it?

This is my first question here and I am not a programmer but an mechanical engineer doing some IT stuff for my company. So my task is to write a batch code to find all PDF files in a directory and ...
HTWUSER's user avatar
1 vote
2 answers
38 views

Synchronizing Visual Studio Code configuration between Windows and Linux with dynamic path handling

I am using Visual Studio Code as my primary development environment and I rely on the IDE's configuration synchronization feature to keep my settings consistent across different environments. However, ...
salsan's user avatar
  • 389
0 votes
1 answer
24 views

What causes a 'numpy.float64' object not callable TypeError when attempting to retrieve the newest CSV file in a folder using Python?

I tried to get the latest csv file in a folder in Python. I had the same code that already worked with a folder with images files. However recently I got a TypeError: 'numpy.float64' object is not ...
Cyantific's user avatar
1 vote
1 answer
31 views

How to check if a folder is actually an alias in C (macOS)?

I'm writing a simple recursive program that looks for specific files in a certain directory tree on macOS. Problem is, if it finds an alias to a folder that is above the current directory on the same ...
Ernaldo's user avatar
  • 47
-1 votes
0 answers
7 views

I need to keep the same domain, changing the directory

I need to change the directory of my website, keeping the same domain. In details, I'm updating my website, but it can't be offline. So, I want to keep the same domain just need a directory of a ...
Danilo Novicik's user avatar
0 votes
1 answer
31 views

How to retrieve all files contained in a folder inside a JAR?

I need to get a folder within a jar file. The folder is name postman and contains some JSON files. My purpose is to get that folder as a File object, list the files to do some actions on names and ...
Dazerkraii's user avatar
1 vote
2 answers
44 views

Comparing two folder structures with PowerShell

I am trying to compare two folder structures with PowerShell. At the end, I should see an overview of all files/folders with the full path, which are just in folder A or folder B. I also want to ...
x0100's user avatar
  • 89
0 votes
0 answers
11 views

How to delete potential malware files in sbin/bin system directory on Mac M1?

I found two very dubious kexts (kextload and kextutil) by checking my login items on my m1pro macbook. I deactivated them but would still like to know how to delete them for good, since they do not ...
Werner Zimmermann's user avatar
-1 votes
1 answer
28 views

How to create a directory inside the C:\ProgramData in Python?

How to create a directory inside the C:\ProgramData in Python? I want to create Foo directory inside C:\ProgramData in Python import os from pathlib import Path, PurePath, PosixPath,PurePosixPath,...
sejal Ninni's user avatar
-1 votes
0 answers
8 views

Write filepath and date modified of files in folder and subfolders using command line and output a file

Get filepath and date modified using command line I am using dir /s /b>filename.txt This outputs me the filepath which is great. How can I also get date modified and the filepath both for all files ...
user18366171's user avatar
1 vote
0 answers
15 views

How can I add a link to shared folders on Sharepoint for my colleagues?

I created my first Sharepoint page. I added links to my coworkers files that they've shared with me. However, I cannot find a way to add a link to folders they've shared with me. Is this possible? ...
Sue's user avatar
  • 11
-1 votes
1 answer
22 views

Trouble with PyInstaller packaging specific files

PyInstaller not detecting --add-data directory commands Hello everyone, I have a question regarding PyInstaller and the apparent ninth circle of hell I've opened trying to package a PyQT5 application ...
mabdali's user avatar
0 votes
0 answers
14 views

How do i make my paths not dependent on who executes the code?

I am currently writing a code with python, in which I need to safe some files in a certain path: r"/Users/nik/Library/CloudStorage/Dropbox/Projektmodul/Tool/Bausteine/combined.mdl" Now I ...
Nik's user avatar
  • 3
0 votes
0 answers
11 views

Set a parent working directory then calling on subfolders R

Basic question sorry and probably already answered but having trouble searching for a solution. I want to work on some data file: C:/Users/userg/desktop/R/harv/trial1/short/data/file_name.csv So in ...
Gilrob's user avatar
  • 45
0 votes
1 answer
28 views

How to clean up this directory traversal?

I have the following directory structure that i want to traverse and call a function on each (loaded) file if the directories and file pass certain criteria self.directories[0] │ └───maps_dir_1 │ ...
J.N.'s user avatar
  • 143
0 votes
1 answer
36 views

Read and Extract file from Azure Folder c#

I want to read XML Files from the folder that is in ZIP Format and zip folder exist in azure cloud that need user and password to get into account. I want this code in c# ..Please help me to Read ...
Shahnila's user avatar
0 votes
0 answers
20 views

Python download files to a specific directory using open with format in the file name

I am trying to download files to a specific folder, but with formats in the file name according to its data in the spreadsheet. For example, I have data columns with year, country, language, and a ...
suck_to_sharp's user avatar
2 votes
1 answer
32 views

Where is Dyalog installed on Windows?

Some documents refer to things in the Dyalog installation directory. How can I easily find out where that directory is? I searched the internet and found the SETUP README for version 18.2, which shows ...
RikedyP's user avatar
  • 543
-1 votes
0 answers
32 views

Why is the following code giving me an error code 52 when copying only one file? Not giving me an issue when more than 1 file to copy

Sub CopyFilesX() Dim sSrcFolder As String, sTgtFolder As String, sFilename As String Dim c As Range, rPatterns As Range Dim bBad As Boolean sSrcFolder = ActiveSheet.Range("G2&...
REALESAL's user avatar
0 votes
0 answers
22 views

How best to structure folders for python with multiple modules

I have the following folder structure: src. main.py. ../mod_a. ....mod_a_func.py. ../mod_b. ....mod_b_func.py. ......./mod_b_helper. ..........helper.py I am going to execute main.py from src ...
Andy's user avatar
  • 23
0 votes
0 answers
35 views

Python - Cannot find file in system path?

I am trying to move into Python and am used to using MATLAB. In MATLAB I am used to adding folders to the current working directory or path. So I would normally add a particular folder + all the sub ...
Otispunkmeyer86's user avatar
0 votes
0 answers
19 views

Writing a process to array all folders and subdirectories in a path

I've been working on writing a process to order a directory array that branches through all folders/subdirectories from top to bottom of a fixed path, following the branching folders until the end of ...
Trivius's user avatar
-1 votes
1 answer
15 views

I have same problem of directory, i tried to change the directory of session from R studio

error showing in the mardown file error showing in the console Itry try to read this csv file but still getting this error
Asib Siddique's user avatar
0 votes
0 answers
15 views

How to check if the files are changed in one folder or one folder plus files outside that folder?

I have a requirement where I need to run the github actions workflow when there is a change in one folder I need to call one workflow file, if there is a change in that folder and/or other files then ...
Swathi DA's user avatar
0 votes
0 answers
21 views

how to avoid invalid procedure/argument when looping thru files in folder with folder checking?

the code intends to loop thru all files in the folder then use the functionGetLastChars on each file, then create a folder if it does not exist, then move the file to the folder, but it has an invalid ...
k1dr0ck's user avatar
  • 848
-2 votes
0 answers
50 views

Problem of file creation through loop and array in Linux

I wrote this bash script to create files with the names same as the names of every sub-directories in current directory: #!/bin/bash dir="$(dirname "$0")" cd "$dir/" ...
蕭力諶's user avatar
3 votes
1 answer
52 views

Iterate through a folder just once JAVA Files.walk

I am stuck regarding reading only the directories. I want to iterate a folder and see all the subdirectories that the folder contains. If the subdirectory contains txt files, then send it to the "...
ilie alexandru's user avatar
0 votes
2 answers
25 views

Convert selected files in directory into another format

For all the files in the input directory ending with "hic", I want to convert them to cool format. A single file can be converted using: hic2cool_convert(<infile>, <outfile>) ...
melolili's user avatar
  • 1,009
0 votes
1 answer
29 views

R How to apply the same function to differents .bil files

I am attempting to apply a data transformation to 400 different .bil datasets. I am familiar with the transformation I would like to do, but since I am relatively new to R, I am struggling to automate ...
Eliot Wendling's user avatar
-1 votes
0 answers
19 views

Batch file listing files in a folder but excluiding some of them

I am looking for a code that is able to list all files in a folder and export it as a CSV file. Nonetheless, only CSV files should appear. If a file is a PNG, for instance, should not appear in output ...
El_Prudente's user avatar
0 votes
0 answers
12 views

Creating a folder with name and saving the photos I took in the folder. Android App

I want to create a simple application. It will create the folder I entered the name of. I will be able to take photos within the application without leaving the camera application.it will create the ...
TheMurat95's user avatar
0 votes
2 answers
71 views

How to change the local cache directory for the zig build system?

Motivation: my source files are on a network (samba) share. zig build fails with error: Unexpected . To overcome it (otherwise I have to delete the ./zig-cache/ folder before every build) and to ...
MKaama's user avatar
  • 1,664
0 votes
0 answers
12 views

Trying to rename files using 'os' module but getting errors [duplicate]

I am trying to rename files in my directory. I want to check if the file begins with a '000' then I will replace it with 'district' in the filename. So for example, filename "...
Dulce Trevino's user avatar
0 votes
1 answer
27 views

Certain Android devices are not able to open the media from the device

It's a hybrid Vordova based app. Trying to click a picture and show a thumbnail. It works on most devices, but this particular model of Samsung A03 does not work. Did multiple software updates and ...
Aqua's user avatar
  • 1
-2 votes
1 answer
31 views

How to know if a website is enabled/disabled the directory browsing using javascript

I want to know a random website is enabled/disabled the directory browsing like this (Link). Is there any way to know by using javascript or possible to know via headers?
Denny's user avatar
  • 157
0 votes
1 answer
19 views

get number of sub-folders older than X days

im using the following command $(ls C:\temp).LastWriteTime which results in a number of folders on my computer, and I can see that there are 2 folders older the X days. However, when I pipe out the ...
uberdude's user avatar
1 vote
1 answer
38 views

Renaming a list of images using text in python?

I have a list of images in a folder that I want to rename using a text file but keep the extension ".png" before folder images 0001.png 0002.png 0003.png 0004.png 0005.png namelist.txt ...
Oussama Rahim's user avatar
0 votes
1 answer
65 views

if the name exists in the Excel, check if a folder for that name exists, if true copy the Folder

I've been working on this for days but no luck. I have some folder in another folder and I need to check if the Name of these folders appear on a Excel sheet. If so I want to copy the files to another ...
Mostafa Bouzari's user avatar
1 vote
0 answers
40 views

how to find out the directory path of the frontend in Java Script

I have made an offline app with Electron. I already use window.showDirectoryPicker() but it just returns: { kind: 'directory', name: 'New Folder' } With the code below, after I select a folder ...
Hamzahbay's user avatar

1
2 3 4 5
389