Category "directory"

How to glob files into folders depending on their prefix

I have 4000 fish picture files, named as follows: acanthistius_cinctus_1 acanthistius_cinctus_2 acanthopagrus_latus_1 acanthopagrus_latus_2 ... There are 468 s

Parent Process Directory not recognized by the Icon and Background Image fields in Windows Terminal

Windows Terminal version 1.12.10732.0 Windows build number 19043.1645 Issue Forgive me if this has been addressed already somewhere else, but I realized that wh

function that takes directory of .txt file and returns a dictionary based on set parameters?

I want to make a function that takes the directory of a .txt file as an input and returns a dictionary based on specific parameters. If the .txt file is empty,

Qt and Android 11: accessing file in download folder

I developed an app using QT 5.15 that need to read some kind of files in Android Download folder. All it's OK until Android 9. In Android 10 I added the manifes

How to select two files from a directory, and always every other file?

I am currently working on RNA-Seq data, and I have a directory containing the forward and the reverse sequences of a number of samples. I want to run tools such

I keep getting the error "[Errno 21] Is a directory:" when recalling a text file from a zipped file

I have a zipped file that I have unzipped that contains text files in the date format "yyyymmdd.txt" and when I try recalling a certain date's file I keep getti

using python, get a list of directories for parallel script execution

I need to be able to get a list of directories with the following pattern: /app/{APP_NAME}/current/bin in order to run start and stop scripts. The problem I ru

Problem in changing directory with a path variable in google colab

I want to change directory in google colab. a = 'drive/MyDrive/COLAB/colab_common_utilities' Following works: # method 1: import os os.chdir('drive/MyDrive/COLA

Get the file list of a folder with Dir

I'm trying to get the file list of a folder in VBA The DIR command acts as if the * wildcard is messing up the whole mask that I input. Here is my file list: No

Python Arrays sorting folder names

Hi could anyone explain to me how to sort the folder names in order of creation? list1=["New folder", "New folder 1", "New folder 10", "New folder 2"]

Why does cmd DIR search include files that start with the 3 searched letters but then differ?

If in a directory I have two files, test.pro and test.properties, and I run dir /s *.pro to find all files with the .pro extension, it lists both files. However

How to use data files of sub-directories and perform iterative operation in python

I have my jupyter notebook (python script) in current directory. In current directory, I have two subfolders, namely a and b. In both directories a and b I have

Flattening Directory tree in Google Colab

I have a tree of directories like this User-1 Raw --Scan1.img --Scan2.img User-2 RAW --Scan1.img --Scan2.img Etc How would I go about flattening the directo

Poco addRecursive Not Returning to Normal Program Flow

I implemented Poco in my C++ application for Windows in VS 2019 using tips from this post: How to use Poco::ZIP to compress/decompress zip file I have figured o

How to organize classes and layout

so i was trying to find how to make sub folders for java classes and the xml layouts, I have a big project to work on and having to many classes and layouts in

How to organize classes and layout

so i was trying to find how to make sub folders for java classes and the xml layouts, I have a big project to work on and having to many classes and layouts in

php Blob url to directory

throught ajax send a blob url var blob = new Blob([content], { type: 'text/html; charset=utf-8' }); var urlBlob = URL.createObjectURL(blob); $.ajax({ url:

How to create a zipfile and write it to multiple directories/folders?

I have a single .txt file that I want to compress into a zipfile and write into multiple directories. This function creates a list of directories that I want to

How to make path using pandas dataframe as reference

I plan to make hundreds of dataframe with using Excel in hundreds of folders. Reference table: Folder Category Sub Cat

Apply a file to multiple folders using better PowerShell script

I'm working on a project where I have to apply a file to multiple folders every so often. I'm trying to learn some PowerShell commands to make this a little ea