FAQ Database Discussion Community


How to create an event which fires after any file is modified or created or deleted in the filesystem

c#,winapi,events,windows-services,filesystems
I want to create a windows service, which detects if any change(Create, delete or modify)is made to any file in the file system. And when it detects a change, I will check if that change is made to a relevant file. If that is the case, then I will sync...

Random access alternative to named pipes

operating-system,filesystems
Is there a way to create a "file" (i.e. some point in the file system) that can then be opened by any program as a regular file, but reading/writing to it will go to a program instead of to disk? Named pipe seems to meet all the requirements, except it...

Display the contents of folders dynamically with chrome.fileSystem

html5,filesystems,google-chrome-app
Is this possible with chrome.filesystem that clicking on the name of a folder displayed above list form, it dynamically displays the files in that folder. example: Here are my issues: folder 1 folder 2 folder 3 If I click on the folder 2, chrome displays me the files contained in...

Ruby process to index files on a linux filesystem

mysql,ruby-on-rails,ruby,linux,filesystems
I'm developing a small photo sharing Rails app which will read and display photos from a library of photos on the local filesystem. In order to avoid scanning the filesystem every time the user loads the page, I want to set up an hourly cron job that indexes all files...

Protect video from video from capturing

java,security,web,filesystems,system
I have a webpage with a video. I have to protect this video from capturing it from browser with video capturing programms. I think that for this task i need to check process list or something like this, but to do this i have to use Java. Could anyone give...

Hadoop HDFS is not distributing blocks of data evenly

hadoop,filesystems,hdfs,yarn
I am currently running a cluster with 2 nodes. 1 Node is master/slave and the other one is just slave. I have a file and I set the block size to half the size of that file. Then I do hdfs dfs -put file / File gets copied to the...

Xcode changes location of applications folder on build

ios,xcode,core-data,filesystems,ios-simulator
I am storing an .mp3 in my iOS apps documents directory and saving the path to Core Data. When I rebuild the app Xcode seems to move the application data to a different directory thus making the stored path invalid. Why is this happening and what are the best practices...

How to move folder from one location to another location using java

java,file,filesystems,filepath
How to move one folder from one location to another location ? Here is sample code what i did but here it is showing java.nio.file.NoSuchFileException I am using this Package: import java.nio.file.Files; import java.nio.file.StandardCopyOption; Path path1 = FileSystems.getDefault().getPath("D:\\VFSImagecomp\\compressed\\"); Path path2 = FileSystems.getDefault().getPath("D:\\destinitionFile\\"); Files.move(path1, path2, StandardCopyOption.REPLACE_EXISTING); Here i am trying to...

Uploaded file not saving to file system

c#,asp.net,asp.net-mvc,asp.net-mvc-5,filesystems
Context I am creating a media library for a CMS that I am building. The basic function includes uploading a file and storing it in a file system. However, it creates an id for the saved file Currently I am testing through what I have built via localhost. db.Files.Add(mediafile); adds...

Delete unused files and folders in an existing project

javascript,php,file,filesystems,folders
I recently started working on this php project that had some previous developers. These dev's made a bit of a mess of things, resulting in a huge amount of different files, in PHP as well as javascript files and stylesheets. I'd like to reduce the amount of files and folders,...

Directory.GetFiles() performance issues

c#,performance,linq,filesystems
Using System.IO.Directory.GetFiles(), I would like to find images .png extension located on NAS server. string searchingString = "ZLLK9"; // original var fileList1= Directory.GetFiles(directoryPath).Select(p => new FileInfo(p)).Where(q => q.Name.Substring(0, q.Name.LastIndexOf('.')).Split('_').First() == searchingString); // fixed var fileList2 = Directory.GetFiles(directoryPath, string.Format("{0}_*.png", searchingString)); There are two ways to find out files contain "ZLLKK9" words....

How do I create a file with boost filesystem without opening it

c++,boost,filesystems
In boost filesystem there is a function create_directory which creates a directory. How do I create a file? I could create one by defining a boost::filesystem::ofstream object but that would also open the file, so I would have to call close on it before I could do other stuff to...

On Linux, what is the correct way to completely empty a directory without deleting it? [closed]

linux,bash,unix,filesystems
Obvious solutions such as rm -rf directory/* will forget hidden files, for example. What is the correct way to do this? My use case is the following: my directory is a subfolder of a root controlled directory, created by root and chowned to my user. If I delete it, I...

open file fail(-1) with different flag settings

android,file-io,io,filesystems,embedded-linux
I have a question about using open() with different flags in Native android. Because i want to open a file and ignore the cache& buffer, in oder to access the hardware(SD card) directly. If the flag setting is O_CREAT | O_RDWR | O_NDELAY, S_IRUSR | S_IWUSR| O_DIRECT | O_SYNC ....

Make filename with colon (“:”) in Windows

ruby,windows,shell,filesystems
I created the file its name is 'asdf:qwer'. 'asdf' file was created, and I input some words. 'asdf' capacity is 0, Hex has no contents. But I can get words. Where they come from? What is colon(:)'s functions in Windows shell? ...

How can I increase the MAX_PATH_LENGTH in a freeBSD system?

linux,filesystems,freebsd,system-calls
I am writing a 'find' like utility to search some particular files in a freebsd based system. The stat() call in freeBSD 9 can accept paths with length 1024 chars, though linux supports upto 4K char paths. The system itself has a filesystem other than freeBSD's (its a commercial OS)...

Compare-and-Swap over POSIX-compliant filesystem objects

algorithm,filesystems,posix,atomic,compare-and-swap
There are several operations which POSIX-compliant operating systems can do atomically with filesystem objects (files and folders). Here is a list of such presumably atomic operations: rename or move file or folder create hardlink create symlink create folder create and open an empty file Is it possible to build Compare-and-Swap...

PHP: path is incorrect while running script from cron

php,linux,cron,include,filesystems
I'm having a strange problem. When I call script with http request (from browser) it works as it should. But when I'm calling it with cron include starts complaining on paths. Why can paths be ok while running the script in a common way an incorrect in cron? I've tried...

Infinite loop when I read from /proc which is implemented with seq_file

linux,linux-kernel,filesystems
I wrote a simple code snippet to learn the usage of /proc file system. When I finished, everything is ok except the reading from this file causes an infinite loop. Some codes show below: static struct seq_operations proc_seq_ops = { .start = proc_seq_start, .next = proc_seq_next, .stop = proc_seq_stop, .show...

How to get OpenResult from IRP_MJ_CREATE callback?

c,windows,filesystems,kernel,driver
I have an event in process monitor and I am trying to get OpenResult value. I have a callback registered and triggered on IRP_MJ_CREATE, it looks like this ULONG CreateOperationCallback(PFLT_CALLBACK_DATA Data, PCFLT_RELATED_OBJECTS FltObjs) { if(Data->IoStatus.Status & FILE_CREATE) { DBGLOG("File created"); // :( not hit in the debugger } if(Data->Iopb->Parameters.Create.Options &...

When working with NodeJS FS mkdir, what is the importance of including callbacks?

javascript,node.js,callback,filesystems
I'm playing with the NodeJS REPL console and following this tutorial. http://www.tutorialspoint.com/nodejs/nodejs_file_system.htm I'm focusing on the File System(FS) module. Let's look at the mkdir function used for creating directories. According to TutorialsPoint, this is how you create a directory with FS var fs = require("fs"); console.log("Going to create directory /tmp/test");...

How to determine the max partition size?

filesystems,ext3
How to determine what parameters decides that max partition size of an OS would be like 16TB in ext3 or any of the other filesystem?

Why not use a ‘block table’ for file systems (in analogy to a page table)?

memory-management,operating-system,filesystems,virtual-memory
File system structure seems similar to memory management structure: Mapping non-contiguous physical frames to contiguous virtual memory Mapping non-contiguous physical disk blocks to contiguous file. Why not use a ‘block table’ for file systems (in analogy to a page table)?...

mysql release deleted tables

mysql,linux,filesystems
In an emergency I moved a database out of my /var/lib/mysql partition because I needed space, but after I moved it the space wasn't released. I found that it was held as deleted and could view it when I viewed the output of this command. lsof -nP | grep '(deleted)'...

How to find the timestamp of the latest modified file in a directory (recursively)?

linux,bash,find,filesystems
I'm working on a process that needs to be restarted upon any change to any file in a specified directory, recursively. I want to avoid using anything heavy, like inotify. I don't need to know which files were updated, but rather only whether or not files were updated at all....

Trying to delete a directory and his hidden files in linux with php

php,linux,filesystems
From the command line when I use: rm -fr /path/dir/{*,.??*} I can delete all files in /paht/dir including the hidden files, but when I try to make this from PHP with this code: system('rm -fr /path/dir/{*,.??*}') nothing happens. I can't find why this doesn't works...

Filesystem independent way of using glob.glob and regular expressions with unicode filenames in Python

python,regex,python-3.x,unicode,filesystems
I am working on a library which I want to keep platform, filesystem and Python2.x/3.x independent. However, I don't know how to glob for files and match the filenames against regular expressions in a platform/file-system independent way. E.g. (on Mac, using IPython, Python 2.7): In[7]: from glob import glob In[8]:...

How is a file loaded in the FAT file system?

filesystems,fat32,assembly
I am developing a bootloader in x86 Assembly and I have a question about the FAT file system. Which steps are necessary to find and load the file?...

Operating Systems - File system on SSD vs Rotational

operating-system,filesystems,ssd
Solid State Drives (SSD) pose new challenges and opportunities for designers and implementers of file systems. On the one hand, an SSd has no rotational delay and no seek time because no rotational media is involved. On the other hand, space is costlier: SSDs are 10-20 times more expensive per...

Basic File System Implementation

filesystems,fat
I've been given 2k bytes to make a ultra minimalistic file system and I thought about making a stripped out version of FAT16. My only problem is understanding how do I store the FAT in the volume. Let's say I use 2 bytes per block hence I'd have 1024 blocks....

rmdir (2) used for directory tree removal

filesystems,standards,system-calls,syscall,standards-compliance
If a particular filesystem supports cheap removal of whole directories (with everything inside), would it be acceptable by POSIX / Linux / de-facto standards to let rmdir syscall delete a directory successfully even if it was not empty? Manpage for rmdir(2) syscall specifies an error ENOTEMPTY can (or should?) be...

What is a minimal valid UNC path?

windows,filesystems,unc
I want to make a library that (among other things) parses UNC paths, but I don't fully understand the grammar. Common example is: \\server\share\path Are all of those required for a valid file path? I can navigate to \\server (without share) using Windows Explorer, but I assume it is using...

Java - check safely if a file exist on a network drive

java,osx,filesystems
I want to test if a file exists on a mounted network drive. I wrote this simple code using File.exists. import java.io.File; public class NetworkDrive { public static void main(String[] args) { System.err.println(new File("/Volumes/DATA/testedFile.txt").exists()); } } It works correctly mostly but i found an edge case where this code is...

Images stored on disk - search by name

java,image,filesystems
i am writing a java application (actually a Struts2 web application) and i need to store and retrieve images. i found out that it is not a good idea to store images in a database (Can I store images in MySQL) and that it is preferable to write them on...

Traversing `vm_area_struct`'s of a process

c,linux,linux-kernel,filesystems,mmap
As an extension of an answer to Traversing all the physical pages of a process and data here http://www.makelinux.net/ldd3/chp-15-sect-1, I had a small question. In the first answer as suggested to traverse the physical pages of a process, struct vm_area_struct *vma = 0; unsigned long vpage; if (task->mm && task->mm->mmap)...

Can't find newly-created folders in file system

java,login,javafx,filesystems
I'm trying to create a folder for save files if it doesn't already exist, but I can't find the folders I'm creating in the filesystem after I run my code. Here's the event handler for my login button: @FXML private void loginBtnAction(ActionEvent event) { // Check for save file folder...

how do i intergrate and initialize filesystem of laravel 5?

php,laravel,namespaces,filesystems,laravel-5
i followed this steps https://github.com/GrahamCampbell/Laravel-Flysystem composer update "graham-campbell/flysystem": "~1.0" DONE php artisan vendor:publish DONE i have this code public function store() { $file = Request::file('images'); $extension = $file->getClientOriginalExtension(); Storage::disk('local')->put($file->getFilename().'.'.$extension, File::get($file)); $entry = new Fileentry(); $entry->mime = $file->getClientMimeType(); $entry->original_filename = $file->getClientOriginalName();...

System time and file system time are not the same

linux,file,time,filesystems,kernel
I met a strange problem on one cluster with 10 nodes. On any node, any file operation makes the access/modification/change time of that file in the future that is 1min52s after the current system time obtained from date. That makes all make command cannot work correctly. Following command are tested:...

How to echo out the contents of every text file that in a directory?

php,filesystems
I have created a directory with some files in there: index.php one.txt two.txt three.txt four.txt In the index.php page, I am currently using this code to echo out all of the files within the directory: <?php $blacklist = array("index.php"); if ($handle = opendir('.')) { while (false !== ($entry = readdir($handle)))...

Problems using local variables in a remote commands

powershell,filesystems
I need to write a script that takes in variables and makes a share on a remote system. This works: Invoke-Command -ComputerName server -ScriptBlock {$a = [WMICLASS]"Win32_Share"; $a.Create("C:\test","test",0)} But this doesn't: $sharepath = "C:\test" $sharename = "test" Invoke-Command -ComputerName server -ScriptBlock {$a = [WMICLASS]"Win32_Share"; $a.Create($sharepath,$sharename,0)} I need a way to...

ENOENT ERROR using fs.unlink in a Express.js Simple APP?

javascript,json,node.js,express,filesystems
js.And i'm creating a simple blog in express.js. I use Typicode/lowdb as database , to create/update/delete, posts based on the id on a data.json file.And use the slug data in the json array to create/update/delete markdown posts with the Node.js File System API.On the delete side of the markdown posts...

Find string in log files and return extra characters

loops,python-3.x,filesystems
How can I get Python to loop through a directory and find a specific string in each file located within that directory, then output a summary of what it found? I want to search the long files for the following string: FIRMWARE_VERSION = "2.15" Only, the firmware version can be...

Fastest and cleanest way to load a FileSystem entry into a memory-mapped file (NIO2)

java,filesystems,in-memory,nio2
I'd like to extract a zip/jar entry into memory so I can close the zip stream/FS and keep the file in the JVM without dealing with temporary copies. One option is to use Files.readAllLines(Path pathToZipFSentry), but it seems it used a buffered reader which can penalize a lot for big...

Mount using offline file system (OFS+FUSE)

linux,filesystems,mount,fuse,mount-point
I am trying to explore OFS (Offline file system) built on the top of FUSE and still exploring it. http://offlinefs.sourceforge.net/wiki/ I installed it on both Fedora and Ubuntu 14.04,however whenever I try to mount any local directory using mount utility, I get the “Transport endpoint not connected” for mount directory....

Setting Timestamps on files/directories is extremely slow

c#,winapi,io,filesystems
I'm working on a project, which requires to copy a lot of files and directories, while preserving their original timestamps. So I need to make many calls to the target's SetCreationTime(), SetLastWriteTime() and SetLastAccessTime() methods in order to copy the original values from source to target. As the screenshot below...

PHP meaning of ./ for directories

file,filesystems
I'm learning PHP and I have been seen ./ used in the context of referring to directories. I've tested it and it refers to the same directory as I'm in. I would like to know what's going on; what's the meaning of ./ for directories?

Travis CI is not case-sensitive by default?

filesystems,phpunit,composer-php,travis-ci,case-sensitive
I have a php project that has composer dependencies which are inherently tested in the code path of my unit tests. Here's my sample code: <?php // where FooBar is a composer package but I'm purposely typing it incorrectly here use \fooBaR public function appendNameToWords(array $words, $name) { $start =...

Memory corruption when traversing a file system

c,ubuntu,directory,filesystems
I am making a function that transverses all the sub files of a system and if it is a regular file prints out the file directory. It will print out a file if it is in the directory but once it tries to transverse a subdirectory it gives me a...

Determine actually mounted volumes and remote file systems in OSX

osx,unix,filesystems
I need to gather a list of all mounted "mount points" that the local file system has access to. This includes: Any ordinarily mounted volume under /Volumes. Any NFS volume that's currently mounted under /net. Any local or remote file system mounted with the "mount" command or auto-mounted somehow. But...

Bash command-line to rename wildcard

linux,bash,filesystems
In my /opt/myapp dir I have a remote, automated process that will be dropping files of the form <anything>-<version>.zip, where <anything> could literally be any alphanumeric filename, and where <version> will be a version number. So, examples of what this automated process will be delivering are: fizz-0.1.0.zip buzz-1.12.35.zip foo-1.0.0.zip bar-3.0.9.RC.zip...

What is the best way to write and append a large file in java

java,web-services,hadoop,filesystems,hdfs
I have a java program which sends a series of GET request to a webservice and stores the response body as a text file. I have implemented following example code (filtered much of the code to highlight the concerned) which appends the text file and writes as a new line...

unknown field 'ioctl' specified in initializer

linux,linux-kernel,filesystems,ioctl
I implement a simple example to study the usage of ioctl interface according to the book LDD3. When I compiling the codes, unknown field 'ioctl' specified in initializer. is reported. I guess the difference of kernel version between LDD3's and mine causes this error. I'm now using Debian 8 with...

Child directory sizes and owners

powershell,filesystems
I'm trying to write a PowerShell script retrieving the directory size and owner on my Windows file systems. I've got two separate scripts that work independently, but I don’t know how to put them together as a single script file. Directory Name and Size: $startFolder = "C:\Test” $colItems = (Get-ChildItem...

Unremovable 0 byte file in data dir

android,filesystems,android-4.4-kitkat
A working app of mine started throwing warnings to logcat all of a sudden on my 4.4.4 Kitkat device: W/ContextImpl﹕ Failed to ensure directory: /storage/emulated/0/Android/data/com.example.app/files/Pictures All the photos and other data are unaccessable to the app. After some digging it turns out that there's a seemingly 0 byte file in...

Getting error when copying file from s3:// to local(hadoop) file system

python,hadoop,amazon-s3,filesystems,hdfs
I am trying to copy the files from s3 to hadoop file system using python. I got the following error: cp: `foo/ds=2015-02-13/ip-d1b-request-2015-02-13_10-00_10-09.txt.gz': No such file or directory I am recently migrating latest hadoop version(2.4.0). In version(0.20) is working fine. Why I m getting this error in the 2.4.0 version? In...

Ext.device.filesystem.FileEntry.read() - type: “text” returns blank file

extjs,filesystems,device
I am facing a problem with Ext.device.filesystem.FileEntry.read() method. When I try to read the text/JSON file as text, I get a blank file. Any idea? Looks like readastext method of extjs file reader is buggy. Following does not work: var fileEntry = new Ext.device.filesystem.FileEntry(newFilePath, fileSystem); fileEntry.read({ //type: "binaryString", encoding: 'UTF8',...

How to get the pid if i only know process name in linux using proc

c,linux,filesystems,procfs
I am going to make program to get process informaition(pid, process name, virtual memory, physical memory ) using procfs. and i want print like this PID Name Virtual physical shared 1 init 1234 123 22 33 firefox 33 33 2 I think I can get the process information through proc/[pid]/stat...

Creating a Zip File System Provider in Java

java,filesystems
z From http://docs.oracle.com/javase/7/docs/technotes/guides/io/fsp/zipfilesystemprovider.html, I have this small program: import java.util.*; import java.io.File; import java.net.URI; import java.nio.file.*; public class ZipFSPUser { public static void main(String [] args) throws Throwable { Map<String, String> env = new HashMap<>(); env.put("create", "true"); URI uri = (new File(args[0])).toURI(); FileSystem fs = FileSystems.newFileSystem(uri, env); } } I...

What should be the size of the file in HDFS for best MapReduce job performance

hadoop,mapreduce,filesystems,hdfs
I want to do a copy text files from external sources to HDFS. Lets assume that I can combine and split the files based on their size, what should be the size of the text file for best custom Map Reduce job performance. Does size matter ?

find and remove all closed files that are not modified in some-time

linux,delete,find,filesystems
I'm building a script in linux that will remove files from the disc that aren't in used corrently by the OS. I want to use find command so i can execute rm for all the files that i find that are not open. I tried so far this command without...

Why does c++ standard still not include file system and networking? [closed]

c++,networking,filesystems,standards
I have been wondering about this for a while, and haven't found out relevant answer anywhere. So do you have any clue, why the C++ standard committee is not even thinking about adding such an essential features in the future? In my opinion every programming language, in order to be...

Xamarin Studio. Save failed: couldn't perform atomic initialization

osx,xamarin,save,filesystems
I'm at a loss, the disk has around 300GB free and when checking on finder all the files are read/write enabled.

Quickest way to create multiple copies of the same file with slightly different file names

vba,excel-vba,filesystems
I'm currently doing the following: Global myNames() As Variant Sub createEmptyTemplates(ByVal destPath As String, ByVal tempPath As String) ':: this is just to create a load of copies of a template Dim aName For Each aName In myNames() Dim myDest As String myDest = destPath & "\" & "Copy of...

Adding a stream to an ISO as a File

c#,stream,filesystems,imapi
I am using the IMAPI2FS Image Mastering API in Windows, and I'm trying to figure out how to add a stream as a file to the file system image before I generate the ISO. var fsi = new MsftFileSystemImage(); fsi.ChooseImageDefaultsForMediaType(IMAPI_MEDIA_PHYSICAL_TYPE.IMAPI_MEDIA_TYPE_DISK); fsi.FileSystemsToCreate = FsiFileSystems.FsiFileSystemISO9660 | FsiFileSystems.FsiFileSystemJoliet; using (var stream = new...

multiple python scripts one text file

python,filesystems
I want to know if it can be done. I have a script made in python that takes a random line from a text file, process it and returns a modified line, i insert it in the file and that's it. My problem is that i want to expand the...

How to overwrite a file in Chrome App?

javascript,google-chrome,filesystems,google-chrome-app,filewriter
I followed this example: chrome.fileSystem.chooseEntry({type:'openDirectory'}, function(entry) { chrome.fileSystem.getWritableEntry(entry, function(entry) { entry.getFile('file1.txt', {create:true}, function(entry) { entry.createWriter(function(writer) { writer.write(new Blob(['Lorem'], {type: 'text/plain'})); }); }); entry.getFile('file2.txt', {create:true}, function(entry) { entry.createWriter(function(writer) { writer.write(new Blob(['Ipsum'], {type: 'text/plain'})); }); }); }); }); to overwrite some existing file file1.txt and...

What's the “atomic disk write” for a Linux filesystem?

linux,apache,http,nginx,filesystems
From the nginx config file readme: access_log: An optional third parameter indicates the size of the buffer If write buffering is used, this size cannot exceed the size of the atomic disk write for that filesystem. ...

Can't figure out why GetFiles(…) isn't working for me

c#,filesystems,server
I'm making a simple program where I'm trying to read through text files and count the number of occurrences of a specific phrase. These text files are in fact log files for my server, but anyhow the folder structure including my program is like FailedReqLogFiles .... LogFiles folder1 textFile1 textFile2...

Ideal number of files per folder for large sets of files

filesystems,repository,storage
I am currently in the process of designing a simple repository that uses the file system to store documents. There is the future potential for millions of files and the strategy that I want to use to map an ID to a location on disk is a means of hashing...

Mount ext4 file system with msdos partition table

linux,filesystems,mount,ext4,fdisk
I have run into some trouble with an external usb-harddrive. It is formatted as ext4 under ubuntu server 14 and is full of data (which I need). However, I can't mount it. fdisk -l gives me: Device Boot Start End Blocks Id System /dev/sdb1 2 976773167 488386583 b W95 FAT32...

How should I read the filename in FILE_NOTIFY_INFORMATION struct

c++,winapi,filesystems,file-monitoring,readdirectorychangesw
I'm trying to monitor file changes but I am not really sure on how to read the filename in the FILE_NOTIFY_INFORMATION struct: HANDLE dwChangeHandles[2]; DWORD dwWaitStatus; wChangeHandles[0] = FindFirstChangeNotification(dirname.c_str(), FALSE, FILE_NOTIFY_CHANGE_LAST_WRITE); if (dwChangeHandles[0] == INVALID_HANDLE_VALUE) printerr(__FILE__,__LINE__,"FindFirstChangeNotification function failed.\n"); ... if ((dwChangeHandles[0] == NULL) || (dwChangeHandles[1] == NULL)) //final validation printerr(__FILE__,__LINE__,"Unexpected...

About Linux file system

linux,filesystems,df
Just set a Fedora 22 system on VMWare with 60GB. When inputting the "df" command, the system displayed this: Filesystem 1K-blocks Used Available Use% Mounted on /dev/mapper/fedora-root 38440424 4140700 32324020 12% / devtmpfs 2009804 0 2009804 0% /dev tmpfs 2017796 92 2017704 1% /dev/shm tmpfs 2017796 872 2016924 1% /run...

Importing files to database with folders as categories ASP.NET C#

c#,asp.net,import,filesystems
Now this seemed like a fairly trivial task but I haven't found any related replies to it. I have a large set of files organized inside folders wich I need to import to a database (not the files themselves as varbinary, just path and relevant file data), including a Category...

Storing images in MSSQL vs Disk

sql-server,image,filesystems,storage
I am developing an inhouse application in C#.NET, based on an MSSQL database. Users can upload images linked to a specific entity. These images have usually around 4 to 5 MB and cannot be compressed for storage. Right now these images are stored in the filesystem where the application is....

What's biggest difference between 64bit file system and 32bit file system

filesystems
May I ask what is the biggest difference between 64bit file system and 32bit file system? More available inodes? Bigger partition?

How to convert filename with invalid UTF-8 characters back to bytes?

python,python-3.x,unicode,utf-8,filesystems
How do I convert the output of os.listdir to a list of bytes (from a list of Unicode strs)? It has to work even if the filename is invalid UTF-8, for example: $ locale LANG= LANGUAGE= LC_CTYPE=en_US.UTF-8 LC_NUMERIC="POSIX" LC_TIME="POSIX" LC_COLLATE="POSIX" LC_MONETARY="POSIX" LC_MESSAGES="POSIX" LC_PAPER="POSIX" LC_NAME="POSIX" LC_ADDRESS="POSIX" LC_TELEPHONE="POSIX" LC_MEASUREMENT="POSIX" LC_IDENTIFICATION="POSIX" LC_ALL= $...