Questions tagged [file-attributes]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1
vote
1answer
24 views

The arguments “/S” and “/L” of the command ATTRIB won't work

I'm creating a program where I need to make all folders and files, in a given directory, invisible. For that, I'm using the CMD's command ATTRIB, with the arguments /S /D, as well as in the code below:...
1
vote
1answer
62 views

How do I find all files in subfolders that are missing a specific property?

On my main Windows 10 machine, I take a lot of video game screenshots with Steam. Within Steam's screenshot folder (Steam\userdata\<user_id>\760\remote), it creates a new folder for every game, ...
1
vote
1answer
384 views

How to clear the “date last opened” attribute on macOS Big Sur

I am trying to clear this extended attribute for all the files located in the Recents smart folder. They are ordered by the "date last opened" attribute. I am trying to clear this attribute ...
0
votes
0answers
17 views

I can't remove “i” attribute from a file with chattr

I have some files on a Cloudlinux server that are apparently immutable (chattr +i). If I use chattr -i I am still unable to remove these files. [root@server a239b0]# lsattr ----i----------- ./ai-...
1
vote
1answer
259 views

How to use keyboard shortcuts for hidden desktop shortcuts/icons?

I created a shortcut on the desktop and assigned a Keyboard Shortcut to it from the properties menu to it. Now if I assign the hidden attribute, the shortcut gets hidden and Keyboard shortcut stops ...
0
votes
3answers
896 views

Accidentally deleted .Trashes folder. What should I do?

When I unhid all the hidden files and folders on my external flash drive, I accidentally deleted the entire .Trashes folder. I searched about it online and I got the answer that this "Trashes&...
0
votes
1answer
186 views

How do I reverse attrib settings to default?

How do I reverse attrib settings to default? I put the command "ATTRIB -H -R -S /S /D X:." (X = Drive letter) and now it shows hidden files and folders. I then put the command "ATTRIB +...
2
votes
3answers
930 views

In Windows, how do I list the extended attributes — or metadata — for an MP3 file?

I have multiple folders with MP3 files. Some files are duplicates but in separate folders. I want to create printable list of extended attributes — or metadata — to retain the file with the highest ...
2
votes
0answers
751 views

Renaming a file in Explorer Win10 does not change modified date

This is something that never occurred to me but I noticed that when I rename a file its modified attribute will remains unchanged. This happens on multiple devices I tested it on (Win10, NTFS) and for ...
0
votes
1answer
178 views

Bulk edit SFX script

I create custom portable versions of apps using WinRAR's SFX module (among other things, the setup option Run after extraction). In the cases where 32-bit / x86 and 64-bit / x64 versions are available,...
1
vote
0answers
130 views

Retain xattrs in files (macOS files on Linux SMB server)

I run an SMB4 server on Ubuntu Server 19.04 using ZFS as the server file system (separate from the boot drive). I use this server to store files from my Macs (10.7, 10.8, 10.11, 10.12, 10.13, 10.14). ...
0
votes
0answers
41 views

Folder's “system” attribute disappears after copying to USB drive

I have a "Desktop.ini" file in a specific folder. I define the folder as a system folder using cmd : attrib +s folder and everything works well. But when I copy the folder to a USB drive, my folder ...
2
votes
1answer
76 views

How to list only files with a specific extended attribute in macOS?

I have a directory with about 10,000 files and I'm using ls to list the files. However, I want to list only the files that have the com.example.mycolor extended attribute set. What I tried: ls -l@ |...
8
votes
1answer
817 views

What are “project IDs” in linux, as mentioned in the chattr manual?

I was reading through the manual for chattr on my Linux machine (kali4-amd64) when I saw this in the list of definitions of file attributes: A directory with the 'P' attribute set will enforce a ...
1
vote
0answers
429 views

Fix Deleting the files but not it's extended attribute

I am trying to deleted empty folder but with not luck after some searching i seem to me that i have deleted the files in those folder but not it's extended attribute amr@MacBook ~/folders> ls -la ...
0
votes
0answers
2k views

how to change files into folders (Windows 10)

I was using autoit to rename folders, and I used FileMove instead of DirMove. It did move all the data from the folder, but wrote the destination folder as a FILE - Without the D attribute - so ...
2
votes
2answers
158 views

Exclude system entries with “ls” or “find”

Compare Cygwin: $ ls -1 -N /cygdrive/c $Recycle.Bin cygwin64 Documents and Settings pagefile.sys PerfLogs Program Files Program Files (x86) ProgramData Recovery System Volume Information Users ...
2
votes
1answer
2k views

How do I delete ~/Library/Mail with a com.apple.quarantine extended attribute?

I'm running macOS Mojave 10.14. Mail.app and our Exchange server periodically quit talking to one another. The primary symptom of this is that the Inbox shows nothing even though webmail and my ...
2
votes
1answer
278 views

batch change date of all files in dir based on name order [closed]

I have a lot of images sorted according to their filenames: img1.jpg, img2.jpg ... I need to change the file date which is now the same on all images so that img1.jpg date is before img2.jpg etc I ...
2
votes
0answers
236 views

What are the most reliable attributes for comparing two files in order to confirm/verify they are 100% identical?

I had the following situation: I copied 5.5 TB worth of data (in total over 100,000 directories and 10 million files) from an old disk to a newly-purchased external disk. I used Ultracopier on ...
4
votes
2answers
969 views

How do I see and set the NTFS compression attribute in Linux?

Browsing an NTFS partition in Konqueror or Dolphin, the compressed files and folders are not displayed with blue names, and there doesn't seem to be any page in the file properties dialog to see or ...
0
votes
3answers
738 views

What does “read only” and “non executable” means for Folders?

Talking about authorizations, I know what "read only" and "non executable" would mean for a file. But what do those two mean for a folder? And how can I change those access authorizations? Somehow ...
2
votes
1answer
2k views

How to clear (remove) macos extended attributes recursively from a directory?

I downloaded and extracted an archive from GitHub (Homebrew/brew) into a temporary directory under /root (with help from sudo). If I do ls -l I see an extended attribute: total 0 drwxr-xr-x@ 16 root ...
1
vote
0answers
290 views

Copy file attributes with ffmpeg

I'm using the following command to remux audio with ffmpeg (i.e. to copy audio stream to another video file): ffmpeg -i ../../data/1.mp4 -i out.avi -c copy -map 0:0 -map 1:0 -shortest out.mp4 Is ...
2
votes
1answer
489 views

Windows batch command to assign specific time/date stamp to files

I know how to assign the current time and date to a file using copy /b filename.ext +,, but how can I assign it a different time and date, as in this variable: set DateTime=01/01/1970 03:00 AM?
10
votes
1answer
3k views

Chrome crashpad crashes on xattr

I have a macos High Sierra 10.13.3. When running Chrome in headless mode to execute automated tests, I get this error: [0207/114344.742771:ERROR:xattr.cc(64)] setxattr org.chromium.crashpad.database....
0
votes
0answers
1k views

Why doesn't “xattr -w com.apple.FinderInfo /opt” work?

I'm trying to add the com.apple.FinderInfo extended attribute to my /opt directory so that it will show up as an installable folder for installing packages on MacOS 10.13.2 High Sierra. I tried ...
1
vote
1answer
244 views

Windows encrypt folder: Some files not encrypted

I did following two things to encrypt all the content of a root folder named "Foo": The "Foo" folder has many levels of sub-directories with each having multiple files. All of the files in Foo were ...
-1
votes
1answer
2k views

Windows 10 showing “attrib +h” files

I recently bought a new tower that has the Windows 10 OS on it. I am facing one issue with it right now. Back in Windows 7 I was able to hide files and folders completely thanks to the CMD function ...
0
votes
1answer
52 views

OS X Sierra, “Pictures” folder hijacked by an application - how to fix?

A crummy application (MacFamilyTree) somehow hijacked my system's "Pictures" folder. It thinks it's an application now, and has acquired an 'Open with:' panel in the GetInfo window. There's no way to ...
1
vote
0answers
78 views

Earliest possible date for a folder / file attribute? [duplicate]

Just for some context, so people understand why I'm doing what I'm doing... My movie collection is stored in this fashion; Movies (folder) |---- Movie title, Year released (folder) |---- ...
0
votes
0answers
129 views

What just happened to my Windows PC? icons don't show; all folders are read-only

Since yesterday my PC has been behaving oddly. The basic symptoms are: Scripts that worked earlier in the day now fail with file/folder permission errors. More specifically, this error in NodeJS (...
1
vote
1answer
336 views

What does the `I` mean in `attrib` output?

The following image is a screenshot after I typed attrib in C: What does the I mean?
11
votes
3answers
7k views

What do new Windows 8/10 attributes mean: No scrub file (X), Integrity (V), Pinned (P), Unpinned (U)

I just opened help for ATTRIB command on Windows 10.0.15063, and found out that there are new attributes I didn't know about. >attrib /? Displays or changes file attributes. ATTRIB [+R | -R] [+A |...
0
votes
1answer
207 views

Run attrib on a folder in Linux

I have a strange question: if I install wine on Linux will I be able to do a shell exec in php to add the proper attributes to a folder so when it is transferred to Windows it is hidden? For example: ...
1
vote
2answers
40 views

How to create a file that has the properties of another and links to it when opened?

I wonder if anyone knows if it is possible in Windows 7 to create a file (let's call it a source file) that represents another file, has it's properties (including size), but when opened actually ...
1
vote
0answers
49 views

How determine when last time USB hard/flash drive was read/written to?

I am trying to determine when a file was last written to a USB hard/flash drive. An image was restored to a USB hard drive using this USB image tool. The modification/creation dates are old since the ...
0
votes
1answer
39 views

Hiding Files in windows 8.1

I am trying to hide a whole directory, say, I have a folder named x with files y, z and folders 1 and 2 that contain, respectively, files 3 and 4... When I try to hide the whole X directory, but some ...
10
votes
6answers
19k views

Can a file appear to be modified before it was created? [duplicate]

Is it possible to have a file which has a modified date that is before its created date? What actions would cause this event to occur?
0
votes
1answer
145 views

Regarding files resulted in equating file properties in “ls” command

I have a folder in which there are thousands of images. Of those thousand images, I want to bring together all those images whose “Last created” and “Last modified” properties are exactly same. ( In ...
0
votes
1answer
541 views

Which namespaces of xattrs a non root user can set in android?

I know it isn’t possible to setsecurity.capabilitiesattributes without uid 0 or CAP_SETFCAP. However I was unable to find a complete list of what namespaces of names are allowed or what are those ...
0
votes
0answers
89 views

Do file attributes in CDs and DVDs change if you access them?

I have snooped over my boyfriend's old CDs and DVDs. I opened and copied (with copy paste) some of the files (jpeg and videos). Does this action change the file attributes (date accessed, etc.) of the ...
1
vote
1answer
788 views

Adjust creation date/time of files already copied?

I recently replaced my laptop's hard-disk with a bigger capacity SSD. Windows was re-installed from scratch and then I copied my data to the SSD by putting the old hard-disk in an external USB ...
0
votes
2answers
587 views

How to remove sparsefile attribute

Answers to how to remove the sparsefile file attribute appear to revolve around: fsutil sparse setflag <filename> 0|1 This does not work for me. I am on Windows 7 Pro 32-bit NTFS, as an ...
2
votes
2answers
1k views

How can I stop files hidden using `attrib +h +s somedir` from showing in searches?

I use Windows 10 and I've hidden a folder using attrib +h +s C:\MyUser\HiddenDir\ which contains some files like MySecretDocument.docx. I have Folder Options set to Show hidden files & folders so ...
4
votes
1answer
6k views

How can I modify executable metadata through the command line?

How can I modify these fields on an executable? I've found a few questions here on how to get these fields but none on how to set them. In addition, I need to be able to do this through a batch file ...
2
votes
1answer
7k views

Windows 7 - What is “Date Created” file property referring to?

I usually find it more appropriate to use "Date Created" rather than "Date Modified" for sorting files chronologically for searching/browsing in big shared drives within my organization. Recently I've ...
2
votes
1answer
338 views

How to preserve the Extended File Attributes in linux?

I'm working on a project where i rely mostly on the file's extended attribute that i set when i create the file. But i'm facing problem while modifying the file. Solid Example: When i edit the file ...
0
votes
1answer
494 views

Changing File Attribute

I have two files in my documents currently with the A attribute, but I need them to be -rw-r--r--. Trying to modify them in command line like I would normally just gives me an invalid switch error (...
1
vote
2answers
47 views

Is there any way to verify the age of a file

Is there anyway of verifying the genuine age (date created) of a file. I know that when you copy and paste from one system to another the date can change, and dates change when files are attached as ...