filesize Questions

4

here on SO are a lot of topics about getting the size of a folder programatically in Swift. All accepted answers suggest to use the FileManager and then enumerate over all files to and sum the size...
Warford asked 18/5, 2017 at 8:1

6

Solved

How can I check the size of a file before I load it into R? For example: http://math.ucdenver.edu/RTutorial/titanic.txt I'd like to use the optimal command to open a file based on the file's size. ...
Jaddan asked 1/6, 2015 at 18:38

6

Solved

I can't understand why the 'chown' command should increase the size of my docker image? The following Dockerfile creates an image of size 5.3MB: FROM alpine:edge RUN adduser example -D -h /exampl...
Cargill asked 6/5, 2015 at 19:13

6

In my iPhone app I am using the following code to find a file's size. Even though the file exists, I am seeing zero for the size. NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDire...
Perretta asked 21/4, 2011 at 12:8

3

Solved

My View has an array of file inputs like <input type="file" name="videos[]" /> <input type="file" name="videos[]" /> ... ... and I want to validate for the total allowable upload siz...
Raspberry asked 1/11, 2017 at 12:4

15

Currently, I am working with Asp.Net Core and MVC6 need to upload file size unlimited. I have searched its solution but still not getting the actual answer. I have tried this link If anyone have ...

9

Solved

I'm trying to make a method that converts an integer that represents bytes to a string with a 'prettied up' format. Here's my half-working attempt: class Integer def to_filesize { 'B' => 10...
Rumpus asked 15/4, 2013 at 23:2

10

Solved

I stumbled to learn that my rails3.1 log file is super large, around 21mb. Is this, in terms of size normal? What the log file would like in the production environment? Besides, can I get rid of th...
Succession asked 16/10, 2011 at 11:51

3

Solved

I have an 800kb *.json file all condensed into one line. The built-in JSON formatter seems to refuse to format and tokenize the file and after searching for a while I haven't found any solutions. H...
Regarding asked 10/12, 2019 at 9:51

9

Solved

I need a way to get the size of a file using C#, and not the size on disk. How is this possible? Currently I have this loop foreach (FileInfo file in downloadedMessageInfo.GetFiles()) { //file.L...
Wahhabi asked 4/9, 2009 at 18:32

8

Solved

Is it possible to show the total file size difference between two commits? Something like: $ git file-size-diff 7f3219 bad418 # I wish this worked :) -1234 bytes I’ve tried: $ git diff --patch-...
Sirois asked 1/6, 2012 at 5:48

6

Solved

Is there an option to limit the file size when committing? For example: file sizes above 500K would produce a warning. File sizes above 10M would stop the commit. I'm fully aware of this question...
Naji asked 19/9, 2016 at 14:57

30

Solved

A function to return human readable size from bytes size: >>> human_readable(2048) '2 kilobytes' >>> How to do this?
Inducement asked 7/7, 2009 at 20:59

6

Solved

I have a Python script that reads a file (typically from optical media) marking the unreadable sectors, to allow a re-attempt to read said unreadable sectors on a different optical reader. I disco...
Acrogen asked 5/5, 2010 at 13:30

3

How to format a file size in Dart? Input: 1000000 Expected output: 1 MB The input could be either an int or a double for ease of use, and the result should be a String with only one decimal.
Cracking asked 12/5, 2022 at 16:25

26

Solved

How do I get a human-readable file size in bytes abbreviation using .NET? Example: Take input 7,326,629 and display 6.98 MB
Hurricane asked 11/11, 2008 at 17:51

13

Solved

function humanFileSize($size) { if ($size >= 1073741824) { $fileSize = round($size / 1024 / 1024 / 1024,1) . 'GB'; } elseif ($size >= 1048576) { $fileSize = round($size / 1024 / 1024,1) ....
Diatomite asked 3/3, 2013 at 16:51

3

I have to unzip and then (after processing) again zip(archive) the source files. File sizes are huge typically around 200-250 GB (unzipped, .dat format)(total 96 files). The process of unzipping t...
Memoried asked 9/10, 2013 at 17:42

5

Solved

How do I find the largest 10 files in a given directory, with Perl or Bash? EDIT: I need this to be recursive. I only want to see large files, no large directories. I need this to work on Mac OS...
Reluctant asked 1/1, 2012 at 23:26

1

I've got a program that opens an ASCII log file and writes lines of text to the end of it whenever events occur. The timing of the events is unpredictable; they may happen many times per second, or...
Eventempered asked 19/4, 2023 at 0:21

4

I'm running into a problem that I haven't seen anyone on StackOverflow encounter or even google for that matter. My main goal is to be able to replace occurences of a string in the file with anothe...
Pronominal asked 28/3, 2012 at 10:45

12

Solved

How can I figure out the size of a file, in bytes? #include <stdio.h> unsigned int fsize(char* file){ //what goes here? }
Unbelievable asked 11/8, 2008 at 21:16

6

Solved

Trying to force-download file with PHP using usual: header("Content-type: $type" ); header("Content-Disposition: attachment; filename=$name"); header('Content-Length: ' . filesize($path)); And i...
Pleasantry asked 23/2, 2010 at 17:39

2

Solved

Is there a way to convert an image to ICO format, if the resolution is bigger than 256x256? I found several programs but none of them was able to convert larger images. The size which I need...
Ronna asked 10/9, 2012 at 11:51

8

Solved

For instance, I have a large filesystem that is filling up faster than I expected. So I look for what's being added: find /rapidly_shrinking_drive/ -type f -mtime -1 -ls | less And I find, well,...
Rockabilly asked 15/7, 2009 at 21:38

© 2022 - 2024 — McMap. All rights reserved.