Category "file"

Function df.empty returning an empty dataframe even when it's not

I have a function in my script that checks if the user is already registred in the DataFrame. But I'm having a problem, sometimes this function simply doesn't w

use powershell to print a list of files inside a folder and its subfolders

i need to print all the files included in a folder and its subfolders. i tried with this command Get-ChildItem -Path 'c:\mypath\' -File -Recurse | Out-File -Fil

Passing file from JavaScript to Go server

I am trying to pass a set of FORM values from client to server. FORM values include files, user names and other details as well. how do i decode the file in the

I have created a file and after some operation trying to delete it using file.delete(), but it is not working

I have created a file and after some operation trying to delete it using file.delete(), but it is not working. Below is my code. public boolean isSafe(Multipart

python stream file : no idea why this doesnt work ( but i have same stream id every time )

PS : (due to my country's teaching program, I need to write python code like this ) Hello, I have no idea why this doesn't work: from pickle import load,dump

Converting base64 to image | Not working | Flutter

So, I want to do a simple thing but for some reasons it is not working. I get a base64 string from the server which I need to convert to an image. When I put th

tampermonkey @grant GM_setValue // @grant GM_getValue when i try open file

// @grant GM_setValue // @grant GM_getValue let fileHandle; let fileData; let text async function read()

how to coverage write file func in java

I made a simple function? to which I give a list of objects and then get their headers (just some strings), then sort and write to a file when i made a test for

How can I create a file that only my application can modify it?

How can I create a file that only my application can modify? I need it because I have an app that creates a .txt file where user information is stored and I don

Java File Naming [duplicate]

I'm new to Java. I want to know why Java doesn't give an error and lets the compiler compile it when I write as class class-name without publi

How to write a program with commands?

I would like to write a program that will handle commands like add: And asks for your first name, surname, age list: List the people in a directory remove: remo

Python - find pattern in file in max 4 lines of code

i have the following task. I have to find a specific pattern(word) in my file.txt(is a song centered on page) and to print out the row number + the row which ha

Nodejs encrypt and decrypt using crypto decrypt badly only firsts characters

I have a js script that crypt and decrypt a file using these two functions Encryption function encryptFile(fileName) { const input = fs.createReadStream(fil

How to search list of numbers in many files

I have 5 files containing numbers and need to search for a list of numbers and print the name of the file it has. i tried this code but don't work import os

Printing full path to all possible png files in directory

I need to display all png files in directory 'images'. The problem is there is subdirectory 'additional files' with one more png in it. import glob my_path = "

Pycharm "Save console output to file" not working

I see that no file is saved even though I specify a file pathname log.log in the logs tab (Run/Debug configurations of Pycharm)

How to change user/group uid/gid in LXC container and affecting the used files/directorys

In a fresh Debian 11 container I installed urbackup. In the container the uid/gid from urbackup is 107/115. I needed to bind mounted a zfs dataset to store the

GridFS Large File Download Crashes the Node.js Server. MongoServerError: Sort exceeded memory limit of bytes

So I'm running a Node.js server with mongoose and I've been trying to download a large file using the GridFS node package but I've been getting the following er

How to move local File object in and out of Shared Array Buffers JS

I have a web worker running in a while(true) loop, the code is too deep to change it at this point in time. The worker can access a Shared Array Buffer, I have

File content is different in Docker image vs mounted folder

I have a mounted folder and I download files into this folder through Spring boot application in docker container. File content is correct in my macbook's mount